Struct iop_keyvault_wasm::JsMorpheusRoot
source · [−]pub struct JsMorpheusRoot { /* private fields */ }
Expand description
Representation of the root node of the Morpheus subtree in the HD wallet.
Implementations
sourceimpl 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
sourceimpl Clone for JsMorpheusRoot
impl Clone for JsMorpheusRoot
sourcefn clone(&self) -> JsMorpheusRoot
fn clone(&self) -> JsMorpheusRoot
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JsMorpheusRoot
impl Debug for JsMorpheusRoot
sourceimpl From<JsMorpheusRoot> for JsValue
impl From<JsMorpheusRoot> for JsValue
sourcefn from(value: JsMorpheusRoot) -> Self
fn from(value: JsMorpheusRoot) -> Self
Converts to this type from the input type.
sourceimpl From<MorpheusRoot> for JsMorpheusRoot
impl From<MorpheusRoot> for JsMorpheusRoot
sourcefn from(inner: MorpheusRoot) -> Self
fn from(inner: MorpheusRoot) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsMorpheusRoot
impl FromWasmAbi for JsMorpheusRoot
sourceimpl IntoWasmAbi for JsMorpheusRoot
impl IntoWasmAbi for JsMorpheusRoot
sourceimpl OptionFromWasmAbi for JsMorpheusRoot
impl OptionFromWasmAbi for JsMorpheusRoot
sourceimpl OptionIntoWasmAbi for JsMorpheusRoot
impl OptionIntoWasmAbi for JsMorpheusRoot
sourceimpl RefFromWasmAbi for JsMorpheusRoot
impl RefFromWasmAbi for JsMorpheusRoot
type Anchor = Ref<'static, JsMorpheusRoot>
type Anchor = Ref<'static, 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. Read more
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
sourceimpl RefMutFromWasmAbi for JsMorpheusRoot
impl RefMutFromWasmAbi for JsMorpheusRoot
type Anchor = RefMut<'static, JsMorpheusRoot>
type Anchor = RefMut<'static, JsMorpheusRoot>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for JsMorpheusRoot
impl WasmDescribe for JsMorpheusRoot
sourceimpl Wraps<MorpheusRoot> for JsMorpheusRoot
impl Wraps<MorpheusRoot> for JsMorpheusRoot
sourcefn 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 !RefUnwindSafe for JsMorpheusRoot
impl !Send for JsMorpheusRoot
impl !Sync for JsMorpheusRoot
impl Unpin for JsMorpheusRoot
impl !UnwindSafe for JsMorpheusRoot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more