Enum EmergencyAccessType
#[repr(u8)]pub enum EmergencyAccessType {
View = 0,
Takeover = 1,
}Expand description
What the grantee may do once access is granted.
Variants§
View = 0
The grantee may view the grantor’s vault.
Takeover = 1
The grantee may reset the grantor’s master password and take over the account.
Trait Implementations§
§impl Clone for EmergencyAccessType
impl Clone for EmergencyAccessType
§fn clone(&self) -> EmergencyAccessType
fn clone(&self) -> EmergencyAccessType
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 EmergencyAccessType
§impl Debug for EmergencyAccessType
impl Debug for EmergencyAccessType
§impl<'de> Deserialize<'de> for EmergencyAccessType
impl<'de> Deserialize<'de> for EmergencyAccessType
§fn deserialize<D>(
deserializer: D,
) -> Result<EmergencyAccessType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<EmergencyAccessType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EmergencyAccessType
§impl FromWasm for EmergencyAccessType
Available on crate feature wasm only.
impl FromWasm for EmergencyAccessType
Available on crate feature
wasm only.§type Wire = EmergencyAccessType
type Wire = EmergencyAccessType
The type JavaScript actually passes.
§fn from_wire(
wire: <EmergencyAccessType as FromWasm>::Wire,
) -> Result<EmergencyAccessType, WireError>
fn from_wire( wire: <EmergencyAccessType as FromWasm>::Wire, ) -> Result<EmergencyAccessType, WireError>
Recovers the Rust value from the wire value.
§impl FromWasmAbi for EmergencyAccessType
impl FromWasmAbi for EmergencyAccessType
§impl IntoWasmAbi for EmergencyAccessType
impl IntoWasmAbi for EmergencyAccessType
§impl OptionFromWasmAbi for EmergencyAccessType
impl OptionFromWasmAbi for EmergencyAccessType
§fn is_none(val: &<EmergencyAccessType as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<EmergencyAccessType 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 EmergencyAccessType
impl OptionIntoWasmAbi for EmergencyAccessType
§fn none() -> <EmergencyAccessType as IntoWasmAbi>::Abi
fn none() -> <EmergencyAccessType 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 EmergencyAccessType
impl PartialEq for EmergencyAccessType
§impl Serialize for EmergencyAccessType
impl Serialize for EmergencyAccessType
§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 EmergencyAccessType
§impl ToWasm for EmergencyAccessType
Available on crate feature wasm only.
impl ToWasm for EmergencyAccessType
Available on crate feature
wasm only.§type Wire = EmergencyAccessType
type Wire = EmergencyAccessType
The type JavaScript actually receives.
§fn to_wire(self) -> Result<<EmergencyAccessType as ToWasm>::Wire, WireError>
fn to_wire(self) -> Result<<EmergencyAccessType as ToWasm>::Wire, WireError>
Converts the Rust value into the wire value.
§impl TryFrom<EmergencyAccessType> for EmergencyAccessType
impl TryFrom<EmergencyAccessType> for EmergencyAccessType
§type Error = MissingFieldError
type Error = MissingFieldError
The type returned in the event of a conversion error.
§fn try_from(
value: EmergencyAccessType,
) -> Result<EmergencyAccessType, <EmergencyAccessType as TryFrom<EmergencyAccessType>>::Error>
fn try_from( value: EmergencyAccessType, ) -> Result<EmergencyAccessType, <EmergencyAccessType as TryFrom<EmergencyAccessType>>::Error>
Performs the conversion.
§impl TryFromJsValue for EmergencyAccessType
impl TryFromJsValue for EmergencyAccessType
§fn try_from_js_value_ref(value: &JsValue) -> Option<EmergencyAccessType>
fn try_from_js_value_ref(value: &JsValue) -> Option<EmergencyAccessType>
Performs the conversion.
§impl VectorFromWasmAbi for EmergencyAccessType
impl VectorFromWasmAbi for EmergencyAccessType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <EmergencyAccessType as VectorFromWasmAbi>::Abi, ) -> Box<[EmergencyAccessType]>
§impl VectorIntoWasmAbi for EmergencyAccessType
impl VectorIntoWasmAbi for EmergencyAccessType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[EmergencyAccessType]>, ) -> <EmergencyAccessType as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for EmergencyAccessType
impl RefUnwindSafe for EmergencyAccessType
impl Send for EmergencyAccessType
impl Sync for EmergencyAccessType
impl Unpin for EmergencyAccessType
impl UnsafeUnpin for EmergencyAccessType
impl UnwindSafe for EmergencyAccessType
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.