pub struct JsMorpheusKind { /* private fields */ }
Expand description
Root node of a specific kind of DIDs. The kind used to derive a DID is indistiguishable outside the wallet.
Implementations§
Source§impl JsMorpheusKind
impl JsMorpheusKind
Sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the morpheus subtree for a DID kind.
Trait Implementations§
Source§impl Clone for JsMorpheusKind
impl Clone for JsMorpheusKind
Source§fn clone(&self) -> JsMorpheusKind
fn clone(&self) -> JsMorpheusKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsMorpheusKind
impl Debug for JsMorpheusKind
Source§impl From<JsMorpheusKind> for JsValue
impl From<JsMorpheusKind> for JsValue
Source§fn from(value: JsMorpheusKind) -> JsValue
fn from(value: JsMorpheusKind) -> JsValue
Converts to this type from the input type.
Source§impl From<MorpheusKind> for JsMorpheusKind
impl From<MorpheusKind> for JsMorpheusKind
Source§fn from(inner: MorpheusKind) -> JsMorpheusKind
fn from(inner: MorpheusKind) -> JsMorpheusKind
Converts to this type from the input type.
Source§impl FromWasmAbi for JsMorpheusKind
impl FromWasmAbi for JsMorpheusKind
Source§impl IntoWasmAbi for JsMorpheusKind
impl IntoWasmAbi for JsMorpheusKind
Source§impl LongRefFromWasmAbi for JsMorpheusKind
impl LongRefFromWasmAbi for JsMorpheusKind
Source§type Anchor = RcRef<JsMorpheusKind>
type Anchor = RcRef<JsMorpheusKind>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsMorpheusKind as LongRefFromWasmAbi>::Abi,
) -> <JsMorpheusKind as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsMorpheusKind as LongRefFromWasmAbi>::Abi, ) -> <JsMorpheusKind as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsMorpheusKind
impl OptionFromWasmAbi for JsMorpheusKind
Source§fn is_none(abi: &<JsMorpheusKind as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsMorpheusKind 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
.Source§impl OptionIntoWasmAbi for JsMorpheusKind
impl OptionIntoWasmAbi for JsMorpheusKind
Source§fn none() -> <JsMorpheusKind as IntoWasmAbi>::Abi
fn none() -> <JsMorpheusKind as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsMorpheusKind
impl RefFromWasmAbi for JsMorpheusKind
Source§type Anchor = RcRef<JsMorpheusKind>
type Anchor = RcRef<JsMorpheusKind>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <JsMorpheusKind as RefFromWasmAbi>::Abi,
) -> <JsMorpheusKind as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsMorpheusKind as RefFromWasmAbi>::Abi, ) -> <JsMorpheusKind as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsMorpheusKind
impl RefMutFromWasmAbi for JsMorpheusKind
Source§type Anchor = RcRefMut<JsMorpheusKind>
type Anchor = RcRefMut<JsMorpheusKind>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsMorpheusKind as RefMutFromWasmAbi>::Abi,
) -> <JsMorpheusKind as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsMorpheusKind as RefMutFromWasmAbi>::Abi, ) -> <JsMorpheusKind as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsMorpheusKind
impl TryFromJsValue for JsMorpheusKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsMorpheusKind, <JsMorpheusKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsMorpheusKind, <JsMorpheusKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsMorpheusKind
impl VectorFromWasmAbi for JsMorpheusKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsMorpheusKind as VectorFromWasmAbi>::Abi, ) -> Box<[JsMorpheusKind]>
Source§impl VectorIntoWasmAbi for JsMorpheusKind
impl VectorIntoWasmAbi for JsMorpheusKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsMorpheusKind]>, ) -> <JsMorpheusKind as VectorIntoWasmAbi>::Abi
Source§impl Wraps<MorpheusKind> for JsMorpheusKind
impl Wraps<MorpheusKind> for JsMorpheusKind
Source§fn inner(&self) -> &MorpheusKind
fn inner(&self) -> &MorpheusKind
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsMorpheusKind
impl !RefUnwindSafe for JsMorpheusKind
impl !Send for JsMorpheusKind
impl !Sync for JsMorpheusKind
impl Unpin for JsMorpheusKind
impl !UnwindSafe for JsMorpheusKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::Abi
Source§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
.