pub struct DataEntry {
pub key: String,
pub value: Value,
pub data_type: String,
pub created_at: String,
pub expires_at: Option<String>,
pub access_count: u64,
}Expand description
A WASM wrapper for the Rust cedarling::DataEntry struct.
Represents a data entry in the DataStore with value and metadata.
Fields§
§key: StringThe key for this entry
value: ValueThe actual value stored (as JSON)
data_type: StringThe inferred Cedar type of the value
created_at: StringTimestamp when this entry was created (RFC 3339 format)
expires_at: Option<String>Timestamp when this entry expires (RFC 3339 format). The getter returns undefined if no TTL.
access_count: u64Number of times this entry has been accessed
Implementations§
Trait Implementations§
Source§impl FromWasmAbi for DataEntry
impl FromWasmAbi for DataEntry
Source§impl IntoWasmAbi for DataEntry
impl IntoWasmAbi for DataEntry
Source§impl LongRefFromWasmAbi for DataEntry
impl LongRefFromWasmAbi for DataEntry
Source§impl OptionFromWasmAbi for DataEntry
impl OptionFromWasmAbi for DataEntry
Source§impl OptionIntoWasmAbi for DataEntry
impl OptionIntoWasmAbi for DataEntry
Source§impl RefFromWasmAbi for DataEntry
impl RefFromWasmAbi for DataEntry
Source§type Abi = WasmPtr<WasmRefCell<DataEntry>>
type Abi = WasmPtr<WasmRefCell<DataEntry>>
The Wasm ABI type references to
Self are recovered from.Source§impl RefMutFromWasmAbi for DataEntry
impl RefMutFromWasmAbi for DataEntry
impl SupportsConstructor for DataEntry
impl SupportsInstanceProperty for DataEntry
impl SupportsStaticProperty for DataEntry
Source§impl TryFromJsValue for DataEntry
impl TryFromJsValue for DataEntry
Source§impl VectorFromWasmAbi for DataEntry
impl VectorFromWasmAbi for DataEntry
Source§impl VectorIntoWasmAbi for DataEntry
impl VectorIntoWasmAbi for DataEntry
Auto Trait Implementations§
impl Freeze for DataEntry
impl RefUnwindSafe for DataEntry
impl Send for DataEntry
impl Sync for DataEntry
impl Unpin for DataEntry
impl UnsafeUnpin for DataEntry
impl UnwindSafe for DataEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.