pub struct SiwsAuthenticateRequestBody {
pub connector_type: Option<SiwsAuthenticateRequestBodyConnectorType>,
pub message: String,
pub message_type: Option<SiwsAuthenticateRequestBodyMessageType>,
pub mode: Option<SiwsAuthenticateRequestBodyMode>,
pub signature: String,
pub wallet_client_type: Option<SiwsAuthenticateRequestBodyWalletClientType>,
}Expand description
The request body for authenticating a SIWS ceremony.
JSON schema
{
"title": "SiwsAuthenticateRequestBody",
"description": "The request body for authenticating a SIWS ceremony.",
"type": "object",
"required": [
"connectorType",
"message",
"signature",
"walletClientType"
],
"properties": {
"connectorType": {
"type": [
"string",
"null"
],
"maxLength": 64
},
"message": {
"type": "string"
},
"message_type": {
"type": "string",
"enum": [
"plain",
"transaction"
]
},
"mode": {
"type": "string",
"enum": [
"login-or-sign-up",
"no-signup"
]
},
"signature": {
"type": "string"
},
"walletClientType": {
"type": [
"string",
"null"
],
"maxLength": 64
}
}
}Fields§
§connector_type: Option<SiwsAuthenticateRequestBodyConnectorType>§message: String§message_type: Option<SiwsAuthenticateRequestBodyMessageType>§mode: Option<SiwsAuthenticateRequestBodyMode>§signature: String§wallet_client_type: Option<SiwsAuthenticateRequestBodyWalletClientType>Trait Implementations§
Source§impl Clone for SiwsAuthenticateRequestBody
impl Clone for SiwsAuthenticateRequestBody
Source§fn clone(&self) -> SiwsAuthenticateRequestBody
fn clone(&self) -> SiwsAuthenticateRequestBody
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 SiwsAuthenticateRequestBody
impl Debug for SiwsAuthenticateRequestBody
Source§impl<'de> Deserialize<'de> for SiwsAuthenticateRequestBody
impl<'de> Deserialize<'de> for SiwsAuthenticateRequestBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SiwsAuthenticateRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SiwsAuthenticateRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SiwsAuthenticateRequestBody> for SiwsAuthenticateRequestBody
impl From<&SiwsAuthenticateRequestBody> for SiwsAuthenticateRequestBody
Source§fn from(value: &SiwsAuthenticateRequestBody) -> SiwsAuthenticateRequestBody
fn from(value: &SiwsAuthenticateRequestBody) -> SiwsAuthenticateRequestBody
Converts to this type from the input type.
Source§impl Serialize for SiwsAuthenticateRequestBody
impl Serialize for SiwsAuthenticateRequestBody
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
Auto Trait Implementations§
impl Freeze for SiwsAuthenticateRequestBody
impl RefUnwindSafe for SiwsAuthenticateRequestBody
impl Send for SiwsAuthenticateRequestBody
impl Sync for SiwsAuthenticateRequestBody
impl Unpin for SiwsAuthenticateRequestBody
impl UnwindSafe for SiwsAuthenticateRequestBody
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