pub struct DIDPeerCreateKeys {
pub purpose: DIDPeerKeys,
pub type_: Option<DIDPeerKeyType>,
pub public_key_multibase: Option<String>,
}
Expand description
Structure to help with creating a new did:peer: string purpose: ENUM (DIDPeerKeys) - Verification or Encryption public_key_multibase: String - Optional: Multibase encoded public key (did:key:(.*)) If None, then auto-create and return the private key
Fields§
§purpose: DIDPeerKeys
§type_: Option<DIDPeerKeyType>
§public_key_multibase: Option<String>
Implementations§
Source§impl DIDPeerCreateKeys
impl DIDPeerCreateKeys
pub fn new( purpose: DIDPeerKeys, type_: Option<DIDPeerKeyType>, public_key_multibase: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for DIDPeerCreateKeys
impl Clone for DIDPeerCreateKeys
Source§fn clone(&self) -> DIDPeerCreateKeys
fn clone(&self) -> DIDPeerCreateKeys
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 From<DIDPeerCreateKeys> for JsValue
impl From<DIDPeerCreateKeys> for JsValue
Source§fn from(value: DIDPeerCreateKeys) -> Self
fn from(value: DIDPeerCreateKeys) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DIDPeerCreateKeys
impl FromWasmAbi for DIDPeerCreateKeys
Source§impl IntoWasmAbi for DIDPeerCreateKeys
impl IntoWasmAbi for DIDPeerCreateKeys
Source§impl RefFromWasmAbi for DIDPeerCreateKeys
impl RefFromWasmAbi for DIDPeerCreateKeys
Source§type Anchor = RcRef<DIDPeerCreateKeys>
type Anchor = RcRef<DIDPeerCreateKeys>
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 TryFromJsValue for DIDPeerCreateKeys
impl TryFromJsValue for DIDPeerCreateKeys
Source§impl VectorFromWasmAbi for DIDPeerCreateKeys
impl VectorFromWasmAbi for DIDPeerCreateKeys
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DIDPeerCreateKeys]>
Source§impl VectorIntoWasmAbi for DIDPeerCreateKeys
impl VectorIntoWasmAbi for DIDPeerCreateKeys
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DIDPeerCreateKeys]>) -> Self::Abi
Source§impl WasmDescribeVector for DIDPeerCreateKeys
impl WasmDescribeVector for DIDPeerCreateKeys
impl SupportsConstructor for DIDPeerCreateKeys
impl SupportsInstanceProperty for DIDPeerCreateKeys
impl SupportsStaticProperty for DIDPeerCreateKeys
Auto Trait Implementations§
impl Freeze for DIDPeerCreateKeys
impl RefUnwindSafe for DIDPeerCreateKeys
impl Send for DIDPeerCreateKeys
impl Sync for DIDPeerCreateKeys
impl Unpin for DIDPeerCreateKeys
impl UnwindSafe for DIDPeerCreateKeys
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
.