pub enum CredentialKind {
PubKey,
Script,
}Variants§
Trait Implementations§
Source§impl From<CredentialKind> for JsValue
impl From<CredentialKind> for JsValue
Source§fn from(value: CredentialKind) -> Self
fn from(value: CredentialKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CredentialKind
impl FromWasmAbi for CredentialKind
Source§impl IntoWasmAbi for CredentialKind
impl IntoWasmAbi for CredentialKind
Source§impl OptionFromWasmAbi for CredentialKind
impl OptionFromWasmAbi for CredentialKind
Source§impl OptionIntoWasmAbi for CredentialKind
impl OptionIntoWasmAbi for CredentialKind
Source§impl TryFromJsValue for CredentialKind
impl TryFromJsValue for CredentialKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <CredentialKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <CredentialKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for CredentialKind
impl VectorFromWasmAbi for CredentialKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CredentialKind]>
Source§impl VectorIntoJsValue for CredentialKind
impl VectorIntoJsValue for CredentialKind
fn vector_into_jsvalue(vector: Box<[CredentialKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for CredentialKind
impl VectorIntoWasmAbi for CredentialKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CredentialKind]>) -> Self::Abi
Source§impl WasmDescribeVector for CredentialKind
impl WasmDescribeVector for CredentialKind
Auto Trait Implementations§
impl Freeze for CredentialKind
impl RefUnwindSafe for CredentialKind
impl Send for CredentialKind
impl Sync for CredentialKind
impl Unpin for CredentialKind
impl UnwindSafe for CredentialKind
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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::AbiSource§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.