pub enum DIDPeerKeyType {
Ed25519,
Secp256k1,
P256,
}
Expand description
Supported DID Peer Key Types (used to create a new did:peer: string)
Variants§
Trait Implementations§
Source§impl Clone for DIDPeerKeyType
impl Clone for DIDPeerKeyType
Source§fn clone(&self) -> DIDPeerKeyType
fn clone(&self) -> DIDPeerKeyType
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 Display for DIDPeerKeyType
impl Display for DIDPeerKeyType
Source§impl From<DIDPeerKeyType> for JsValue
impl From<DIDPeerKeyType> for JsValue
Source§fn from(value: DIDPeerKeyType) -> Self
fn from(value: DIDPeerKeyType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DIDPeerKeyType
impl FromWasmAbi for DIDPeerKeyType
Source§impl IntoWasmAbi for DIDPeerKeyType
impl IntoWasmAbi for DIDPeerKeyType
Source§impl OptionFromWasmAbi for DIDPeerKeyType
impl OptionFromWasmAbi for DIDPeerKeyType
Source§impl OptionIntoWasmAbi for DIDPeerKeyType
impl OptionIntoWasmAbi for DIDPeerKeyType
Source§impl TryFromJsValue for DIDPeerKeyType
impl TryFromJsValue for DIDPeerKeyType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <DIDPeerKeyType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <DIDPeerKeyType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for DIDPeerKeyType
impl VectorFromWasmAbi for DIDPeerKeyType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DIDPeerKeyType]>
Source§impl VectorIntoWasmAbi for DIDPeerKeyType
impl VectorIntoWasmAbi for DIDPeerKeyType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DIDPeerKeyType]>) -> Self::Abi
Source§impl WasmDescribeVector for DIDPeerKeyType
impl WasmDescribeVector for DIDPeerKeyType
Auto Trait Implementations§
impl Freeze for DIDPeerKeyType
impl RefUnwindSafe for DIDPeerKeyType
impl Send for DIDPeerKeyType
impl Sync for DIDPeerKeyType
impl Unpin for DIDPeerKeyType
impl UnwindSafe for DIDPeerKeyType
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
.