pub struct JsMorpheusRoot { /* private fields */ }
Expand description
Representation of the root node of the Morpheus subtree in the HD wallet.
Implementations§
Source§impl JsMorpheusRoot
impl JsMorpheusRoot
Sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the morpheus root.
Sourcepub fn kind(&self, did_kind: &str) -> Result<JsMorpheusKind, JsValue>
pub fn kind(&self, did_kind: &str) -> Result<JsMorpheusKind, JsValue>
Derive a separate HD wallet subtree of the given DID kind. Use ‘persona’, ‘device’, ‘group’ or ‘resource’ in singular as a parameter.
Sourcepub fn personas(&self) -> Result<JsMorpheusKind, JsValue>
pub fn personas(&self) -> Result<JsMorpheusKind, JsValue>
Alias for kind(‘persona’)
Sourcepub fn devices(&self) -> Result<JsMorpheusKind, JsValue>
pub fn devices(&self) -> Result<JsMorpheusKind, JsValue>
Alias for kind(‘device’)
Sourcepub fn groups(&self) -> Result<JsMorpheusKind, JsValue>
pub fn groups(&self) -> Result<JsMorpheusKind, JsValue>
Alias for kind(‘group’)
Sourcepub fn resources(&self) -> Result<JsMorpheusKind, JsValue>
pub fn resources(&self) -> Result<JsMorpheusKind, JsValue>
Alias for kind(‘resource’)
Trait Implementations§
Source§impl Clone for JsMorpheusRoot
impl Clone for JsMorpheusRoot
Source§fn clone(&self) -> JsMorpheusRoot
fn clone(&self) -> JsMorpheusRoot
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 JsMorpheusRoot
impl Debug for JsMorpheusRoot
Source§impl From<JsMorpheusRoot> for JsValue
impl From<JsMorpheusRoot> for JsValue
Source§fn from(value: JsMorpheusRoot) -> JsValue
fn from(value: JsMorpheusRoot) -> JsValue
Converts to this type from the input type.
Source§impl From<MorpheusRoot> for JsMorpheusRoot
impl From<MorpheusRoot> for JsMorpheusRoot
Source§fn from(inner: MorpheusRoot) -> JsMorpheusRoot
fn from(inner: MorpheusRoot) -> JsMorpheusRoot
Converts to this type from the input type.
Source§impl FromWasmAbi for JsMorpheusRoot
impl FromWasmAbi for JsMorpheusRoot
Source§impl IntoWasmAbi for JsMorpheusRoot
impl IntoWasmAbi for JsMorpheusRoot
Source§impl LongRefFromWasmAbi for JsMorpheusRoot
impl LongRefFromWasmAbi for JsMorpheusRoot
Source§type Anchor = RcRef<JsMorpheusRoot>
type Anchor = RcRef<JsMorpheusRoot>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsMorpheusRoot as LongRefFromWasmAbi>::Abi,
) -> <JsMorpheusRoot as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsMorpheusRoot as LongRefFromWasmAbi>::Abi, ) -> <JsMorpheusRoot as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsMorpheusRoot
impl OptionFromWasmAbi for JsMorpheusRoot
Source§fn is_none(abi: &<JsMorpheusRoot as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsMorpheusRoot 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 JsMorpheusRoot
impl OptionIntoWasmAbi for JsMorpheusRoot
Source§fn none() -> <JsMorpheusRoot as IntoWasmAbi>::Abi
fn none() -> <JsMorpheusRoot 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 JsMorpheusRoot
impl RefFromWasmAbi for JsMorpheusRoot
Source§type Anchor = RcRef<JsMorpheusRoot>
type Anchor = RcRef<JsMorpheusRoot>
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: <JsMorpheusRoot as RefFromWasmAbi>::Abi,
) -> <JsMorpheusRoot as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsMorpheusRoot as RefFromWasmAbi>::Abi, ) -> <JsMorpheusRoot as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsMorpheusRoot
impl RefMutFromWasmAbi for JsMorpheusRoot
Source§type Anchor = RcRefMut<JsMorpheusRoot>
type Anchor = RcRefMut<JsMorpheusRoot>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsMorpheusRoot as RefMutFromWasmAbi>::Abi,
) -> <JsMorpheusRoot as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsMorpheusRoot as RefMutFromWasmAbi>::Abi, ) -> <JsMorpheusRoot as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsMorpheusRoot
impl TryFromJsValue for JsMorpheusRoot
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsMorpheusRoot, <JsMorpheusRoot as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsMorpheusRoot, <JsMorpheusRoot as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsMorpheusRoot
impl VectorFromWasmAbi for JsMorpheusRoot
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsMorpheusRoot as VectorFromWasmAbi>::Abi, ) -> Box<[JsMorpheusRoot]>
Source§impl VectorIntoWasmAbi for JsMorpheusRoot
impl VectorIntoWasmAbi for JsMorpheusRoot
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsMorpheusRoot]>, ) -> <JsMorpheusRoot as VectorIntoWasmAbi>::Abi
Source§impl Wraps<MorpheusRoot> for JsMorpheusRoot
impl Wraps<MorpheusRoot> for JsMorpheusRoot
Source§fn inner(&self) -> &MorpheusRoot
fn inner(&self) -> &MorpheusRoot
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsMorpheusRoot
impl !RefUnwindSafe for JsMorpheusRoot
impl !Send for JsMorpheusRoot
impl !Sync for JsMorpheusRoot
impl Unpin for JsMorpheusRoot
impl !UnwindSafe for JsMorpheusRoot
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
.