pub enum KeyAlgorithm {
Ed25519,
Rsa3072,
Rsa4096,
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyAlgorithm
impl<'de> Deserialize<'de> for KeyAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KeyAlgorithm> for JsValuewhere
KeyAlgorithm: Serialize,
impl From<KeyAlgorithm> for JsValuewhere
KeyAlgorithm: Serialize,
Source§fn from(value: KeyAlgorithm) -> Self
fn from(value: KeyAlgorithm) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
impl FromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for KeyAlgorithmwhere
KeyAlgorithm: Serialize,
impl IntoWasmAbi for KeyAlgorithmwhere
KeyAlgorithm: Serialize,
Source§impl OptionFromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for KeyAlgorithmwhere
KeyAlgorithm: Serialize,
impl OptionIntoWasmAbi for KeyAlgorithmwhere
KeyAlgorithm: Serialize,
Source§impl RefFromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self
are recovered from.Source§type Anchor = SelfOwner<KeyAlgorithm>
type Anchor = SelfOwner<KeyAlgorithm>
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 Serialize for KeyAlgorithm
impl Serialize for KeyAlgorithm
Source§impl Tsify for KeyAlgorithm
impl Tsify for KeyAlgorithm
const DECL: &'static str = "export type KeyAlgorithm = \"Ed25519\" | \"Rsa3072\" | \"Rsa4096\";"
const SERIALIZATION_CONFIG: SerializationConfig = _
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for KeyAlgorithmwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for KeyAlgorithmwhere
KeyAlgorithm: Serialize,
impl VectorIntoWasmAbi for KeyAlgorithmwhere
KeyAlgorithm: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for KeyAlgorithm
impl WasmDescribe for KeyAlgorithm
Source§impl WasmDescribeVector for KeyAlgorithm
impl WasmDescribeVector for KeyAlgorithm
Auto Trait Implementations§
impl Freeze for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
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
.