pub struct ChallengeResponse {
pub expires_at: Option<i32>,
pub message: Option<String>,
pub nonce: Option<String>,
}Expand description
ChallengeResponse
JSON schema
{
"type": "object",
"properties": {
"expires_at": {
"description": "Unix timestamp when challenge expires",
"examples": [
1699876543
],
"type": [
"integer",
"null"
],
"format": "int32"
},
"message": {
"description": "Message to sign",
"examples": [
"Sign this message to authenticate with Monaco Protocol..."
],
"type": [
"string",
"null"
]
},
"nonce": {
"description": "Unique challenge nonce",
"examples": [
"abc123def456"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§expires_at: Option<i32>Unix timestamp when challenge expires
message: Option<String>Message to sign
nonce: Option<String>Unique challenge nonce
Trait Implementations§
Source§impl Clone for ChallengeResponse
impl Clone for ChallengeResponse
Source§fn clone(&self) -> ChallengeResponse
fn clone(&self) -> ChallengeResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChallengeResponse
impl Debug for ChallengeResponse
Source§impl Default for ChallengeResponse
impl Default for ChallengeResponse
Source§impl<'de> Deserialize<'de> for ChallengeResponse
impl<'de> Deserialize<'de> for ChallengeResponse
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
Auto Trait Implementations§
impl Freeze for ChallengeResponse
impl RefUnwindSafe for ChallengeResponse
impl Send for ChallengeResponse
impl Sync for ChallengeResponse
impl Unpin for ChallengeResponse
impl UnsafeUnpin for ChallengeResponse
impl UnwindSafe for ChallengeResponse
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