pub enum Credential {
Native(Caller),
EthPersonalSign(EthPersonalSign),
CosmosArbitrary(CosmosArbitrary),
Passkey(PasskeyCredential),
Ed25519(Ed25519),
}Variants§
Native(Caller)
EthPersonalSign(EthPersonalSign)
CosmosArbitrary(CosmosArbitrary)
Passkey(PasskeyCredential)
Ed25519(Ed25519)
Implementations§
Source§impl Credential
impl Credential
Source§impl Credential
impl Credential
pub fn is_cosmos_derivable(&self) -> bool
pub fn cosmos_address(&self, api: &dyn Api) -> Result<Addr, AuthError>
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
Returns a copy 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 Debug for Credential
impl Debug for Credential
Source§impl Deref for Credential
impl Deref for Credential
Source§type Target = dyn Verifiable
type Target = dyn Verifiable
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for Credential
impl<'de> Deserialize<'de> for Credential
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Credential, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Credential, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Credential
impl Display for Credential
Source§impl<'_enum> From<&'_enum Credential> for CredentialName
impl<'_enum> From<&'_enum Credential> for CredentialName
Source§fn from(val: &'_enum Credential) -> CredentialName
fn from(val: &'_enum Credential) -> CredentialName
Converts to this type from the input type.
Source§impl From<Caller> for Credential
impl From<Caller> for Credential
Source§fn from(c: Caller) -> Credential
fn from(c: Caller) -> Credential
Converts to this type from the input type.
Source§impl From<CosmosArbitrary> for Credential
impl From<CosmosArbitrary> for Credential
Source§fn from(c: CosmosArbitrary) -> Credential
fn from(c: CosmosArbitrary) -> Credential
Converts to this type from the input type.
Source§impl From<Credential> for CredentialName
impl From<Credential> for CredentialName
Source§fn from(val: Credential) -> CredentialName
fn from(val: Credential) -> CredentialName
Converts to this type from the input type.
Source§impl From<Ed25519> for Credential
impl From<Ed25519> for Credential
Source§fn from(c: Ed25519) -> Credential
fn from(c: Ed25519) -> Credential
Converts to this type from the input type.
Source§impl From<EthPersonalSign> for Credential
impl From<EthPersonalSign> for Credential
Source§fn from(c: EthPersonalSign) -> Credential
fn from(c: EthPersonalSign) -> Credential
Converts to this type from the input type.
Source§impl From<PasskeyCredential> for Credential
impl From<PasskeyCredential> for Credential
Source§fn from(c: PasskeyCredential) -> Credential
fn from(c: PasskeyCredential) -> Credential
Converts to this type from the input type.
Source§impl IntoDiscriminant for Credential
impl IntoDiscriminant for Credential
Source§type Discriminant = CredentialName
type Discriminant = CredentialName
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> <Credential as IntoDiscriminant>::Discriminant
Source§impl JsonSchema for Credential
impl JsonSchema for Credential
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Credential
impl PartialEq for Credential
Source§impl Serialize for Credential
impl Serialize for Credential
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl VariantNames for Credential
impl VariantNames for Credential
impl StructuralPartialEq for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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