pub struct SiweAuthentication {
pub address: BlockchainAddress,
pub type_: SiweAuthenticationType,
}Expand description
Information about an end user who authenticates using Sign In With Ethereum (EIP-4361).
JSON schema
{
"title": "SiweAuthentication",
"description": "Information about an end user who authenticates using Sign In With Ethereum (EIP-4361).",
"type": "object",
"required": [
"address",
"type"
],
"properties": {
"address": {
"description": "The ERC-55 checksummed Ethereum address of the end user.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"allOf": [
{
"$ref": "#/components/schemas/BlockchainAddress"
}
]
},
"type": {
"description": "The type of authentication information.",
"examples": [
"siwe"
],
"type": "string",
"enum": [
"siwe"
]
}
}
}Fields§
§address: BlockchainAddressThe ERC-55 checksummed Ethereum address of the end user.
type_: SiweAuthenticationTypeThe type of authentication information.
Implementations§
Source§impl SiweAuthentication
impl SiweAuthentication
pub fn builder() -> SiweAuthentication
Trait Implementations§
Source§impl Clone for SiweAuthentication
impl Clone for SiweAuthentication
Source§fn clone(&self) -> SiweAuthentication
fn clone(&self) -> SiweAuthentication
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 Debug for SiweAuthentication
impl Debug for SiweAuthentication
Source§impl<'de> Deserialize<'de> for SiweAuthentication
impl<'de> Deserialize<'de> for SiweAuthentication
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<&SiweAuthentication> for SiweAuthentication
impl From<&SiweAuthentication> for SiweAuthentication
Source§fn from(value: &SiweAuthentication) -> Self
fn from(value: &SiweAuthentication) -> Self
Converts to this type from the input type.
Source§impl From<SiweAuthentication> for AuthenticationMethod
impl From<SiweAuthentication> for AuthenticationMethod
Source§fn from(value: SiweAuthentication) -> Self
fn from(value: SiweAuthentication) -> Self
Converts to this type from the input type.
Source§impl From<SiweAuthentication> for SiweAuthentication
impl From<SiweAuthentication> for SiweAuthentication
Source§fn from(value: SiweAuthentication) -> Self
fn from(value: SiweAuthentication) -> Self
Converts to this type from the input type.
Source§impl Serialize for SiweAuthentication
impl Serialize for SiweAuthentication
Source§impl TryFrom<SiweAuthentication> for SiweAuthentication
impl TryFrom<SiweAuthentication> for SiweAuthentication
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SiweAuthentication) -> Result<Self, ConversionError>
fn try_from(value: SiweAuthentication) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SiweAuthentication
impl RefUnwindSafe for SiweAuthentication
impl Send for SiweAuthentication
impl Sync for SiweAuthentication
impl Unpin for SiweAuthentication
impl UnsafeUnpin for SiweAuthentication
impl UnwindSafe for SiweAuthentication
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