pub struct JsMorpheusPublicKind { /* private fields */ }
Expand description
Public keys for a given DID kind in the Morpheus subtree in a vault.
@see MorpheusPublic.kind
Implementations§
Source§impl JsMorpheusPublicKind
impl JsMorpheusPublicKind
Sourcepub fn count(&self) -> Result<u32, JsValue>
pub fn count(&self) -> Result<u32, JsValue>
Retrieves how many DIDs have already be generated of this kind.
Sourcepub fn key(&self, idx: i32) -> Result<JsMPublicKey, JsValue>
pub fn key(&self, idx: i32) -> Result<JsMPublicKey, JsValue>
Retrieves the multicipher {@link PublicKey} with the given index in this subtree.
An error is thrown if that index was not generated yet with {@link MorpheusPrivateKind.key} or {@link MorpheusPrivateKind.did}.
Trait Implementations§
Source§impl From<JsMorpheusPublicKind> for JsValue
impl From<JsMorpheusPublicKind> for JsValue
Source§fn from(value: JsMorpheusPublicKind) -> Self
fn from(value: JsMorpheusPublicKind) -> Self
Converts to this type from the input type.
Source§impl From<PublicKind> for JsMorpheusPublicKind
impl From<PublicKind> for JsMorpheusPublicKind
Source§fn from(inner: PublicKind) -> Self
fn from(inner: PublicKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsMorpheusPublicKind
impl FromWasmAbi for JsMorpheusPublicKind
Source§impl IntoWasmAbi for JsMorpheusPublicKind
impl IntoWasmAbi for JsMorpheusPublicKind
Source§impl RefFromWasmAbi for JsMorpheusPublicKind
impl RefFromWasmAbi for JsMorpheusPublicKind
Source§type Anchor = RcRef<JsMorpheusPublicKind>
type Anchor = RcRef<JsMorpheusPublicKind>
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§impl VectorFromWasmAbi for JsMorpheusPublicKind
impl VectorFromWasmAbi for JsMorpheusPublicKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsMorpheusPublicKind]>
Source§impl VectorIntoJsValue for JsMorpheusPublicKind
impl VectorIntoJsValue for JsMorpheusPublicKind
fn vector_into_jsvalue(vector: Box<[JsMorpheusPublicKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for JsMorpheusPublicKind
impl VectorIntoWasmAbi for JsMorpheusPublicKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsMorpheusPublicKind]>) -> Self::Abi
Source§impl WasmDescribeVector for JsMorpheusPublicKind
impl WasmDescribeVector for JsMorpheusPublicKind
Source§impl Wraps<PublicKind> for JsMorpheusPublicKind
impl Wraps<PublicKind> for JsMorpheusPublicKind
Source§fn inner(&self) -> &PublicKind
fn inner(&self) -> &PublicKind
Converts a reference to a WASM type to a reference to the underlying Rust type.
impl SupportsConstructor for JsMorpheusPublicKind
impl SupportsInstanceProperty for JsMorpheusPublicKind
impl SupportsStaticProperty for JsMorpheusPublicKind
Auto Trait Implementations§
impl Freeze for JsMorpheusPublicKind
impl !RefUnwindSafe for JsMorpheusPublicKind
impl Send for JsMorpheusPublicKind
impl Sync for JsMorpheusPublicKind
impl Unpin for JsMorpheusPublicKind
impl !UnwindSafe for JsMorpheusPublicKind
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> 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
.