Enum EmergencyAccessStatus
#[repr(u8)]pub enum EmergencyAccessStatus {
Invited = 0,
Accepted = 1,
Confirmed = 2,
RecoveryInitiated = 3,
RecoveryApproved = 4,
}Expand description
Where an emergency access is in its lifecycle.
Variants§
Invited = 0
The grantor invited the grantee.
Accepted = 1
The grantee accepted the invite.
Confirmed = 2
The grantor shared their user key with the grantee.
RecoveryInitiated = 3
The grantee requested access and is waiting for approval or the wait time to pass.
RecoveryApproved = 4
Access was granted to the grantee.
Trait Implementations§
§impl Clone for EmergencyAccessStatus
impl Clone for EmergencyAccessStatus
§fn clone(&self) -> EmergencyAccessStatus
fn clone(&self) -> EmergencyAccessStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EmergencyAccessStatus
§impl Debug for EmergencyAccessStatus
impl Debug for EmergencyAccessStatus
§impl<'de> Deserialize<'de> for EmergencyAccessStatus
impl<'de> Deserialize<'de> for EmergencyAccessStatus
§fn deserialize<D>(
deserializer: D,
) -> Result<EmergencyAccessStatus, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<EmergencyAccessStatus, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EmergencyAccessStatus
§impl FromWasm for EmergencyAccessStatus
Available on crate feature wasm only.
impl FromWasm for EmergencyAccessStatus
Available on crate feature
wasm only.§type Wire = EmergencyAccessStatus
type Wire = EmergencyAccessStatus
The type JavaScript actually passes.
§fn from_wire(
wire: <EmergencyAccessStatus as FromWasm>::Wire,
) -> Result<EmergencyAccessStatus, WireError>
fn from_wire( wire: <EmergencyAccessStatus as FromWasm>::Wire, ) -> Result<EmergencyAccessStatus, WireError>
Recovers the Rust value from the wire value.
§impl FromWasmAbi for EmergencyAccessStatus
impl FromWasmAbi for EmergencyAccessStatus
§impl IntoWasmAbi for EmergencyAccessStatus
impl IntoWasmAbi for EmergencyAccessStatus
§impl OptionFromWasmAbi for EmergencyAccessStatus
impl OptionFromWasmAbi for EmergencyAccessStatus
§fn is_none(val: &<EmergencyAccessStatus as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<EmergencyAccessStatus as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.§impl OptionIntoWasmAbi for EmergencyAccessStatus
impl OptionIntoWasmAbi for EmergencyAccessStatus
§fn none() -> <EmergencyAccessStatus as IntoWasmAbi>::Abi
fn none() -> <EmergencyAccessStatus as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read more§impl PartialEq for EmergencyAccessStatus
impl PartialEq for EmergencyAccessStatus
§impl Serialize for EmergencyAccessStatus
impl Serialize for EmergencyAccessStatus
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EmergencyAccessStatus
§impl ToWasm for EmergencyAccessStatus
Available on crate feature wasm only.
impl ToWasm for EmergencyAccessStatus
Available on crate feature
wasm only.§type Wire = EmergencyAccessStatus
type Wire = EmergencyAccessStatus
The type JavaScript actually receives.
§fn to_wire(self) -> Result<<EmergencyAccessStatus as ToWasm>::Wire, WireError>
fn to_wire(self) -> Result<<EmergencyAccessStatus as ToWasm>::Wire, WireError>
Converts the Rust value into the wire value.
§impl TryFrom<EmergencyAccessStatusType> for EmergencyAccessStatus
impl TryFrom<EmergencyAccessStatusType> for EmergencyAccessStatus
§type Error = MissingFieldError
type Error = MissingFieldError
The type returned in the event of a conversion error.
§fn try_from(
value: EmergencyAccessStatusType,
) -> Result<EmergencyAccessStatus, <EmergencyAccessStatus as TryFrom<EmergencyAccessStatusType>>::Error>
fn try_from( value: EmergencyAccessStatusType, ) -> Result<EmergencyAccessStatus, <EmergencyAccessStatus as TryFrom<EmergencyAccessStatusType>>::Error>
Performs the conversion.
§impl TryFromJsValue for EmergencyAccessStatus
impl TryFromJsValue for EmergencyAccessStatus
§fn try_from_js_value_ref(value: &JsValue) -> Option<EmergencyAccessStatus>
fn try_from_js_value_ref(value: &JsValue) -> Option<EmergencyAccessStatus>
Performs the conversion.
§impl VectorFromWasmAbi for EmergencyAccessStatus
impl VectorFromWasmAbi for EmergencyAccessStatus
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <EmergencyAccessStatus as VectorFromWasmAbi>::Abi, ) -> Box<[EmergencyAccessStatus]>
§impl VectorIntoWasmAbi for EmergencyAccessStatus
impl VectorIntoWasmAbi for EmergencyAccessStatus
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[EmergencyAccessStatus]>, ) -> <EmergencyAccessStatus as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for EmergencyAccessStatus
impl RefUnwindSafe for EmergencyAccessStatus
impl Send for EmergencyAccessStatus
impl Sync for EmergencyAccessStatus
impl Unpin for EmergencyAccessStatus
impl UnsafeUnpin for EmergencyAccessStatus
impl UnwindSafe for EmergencyAccessStatus
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Persist for T
§impl<T> Pointable for T
impl<T> Pointable for T
§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.