pub struct ChallengeView {
pub expires_at: Option<i32>,
pub message: Option<String>,
pub nonce: Option<String>,
pub token_id: Option<i32>,
pub ttl_seconds: Option<i32>,
}Fields§
§expires_at: Option<i32>ExpiresAt is when the nonce stops being redeemable, as a Unix timestamp.
message: Option<String>Message is the EXACT text to personal_sign. It is reconstructed server-side from the validated org, the slot and the nonce at redemption, so signing anything else cannot claim the slot.
nonce: Option<String>Nonce is the single-use, org-bound challenge value to send back with the signature.
token_id: Option<i32>TokenID is the slot the challenge was issued for.
ttl_seconds: Option<i32>TTLSeconds is the challenge lifetime in seconds.
Implementations§
Source§impl ChallengeView
impl ChallengeView
pub fn new() -> ChallengeView
Trait Implementations§
Source§impl Clone for ChallengeView
impl Clone for ChallengeView
Source§fn clone(&self) -> ChallengeView
fn clone(&self) -> ChallengeView
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 ChallengeView
impl Debug for ChallengeView
Source§impl Default for ChallengeView
impl Default for ChallengeView
Source§fn default() -> ChallengeView
fn default() -> ChallengeView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChallengeView
impl<'de> Deserialize<'de> for ChallengeView
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 PartialEq for ChallengeView
impl PartialEq for ChallengeView
Source§impl Serialize for ChallengeView
impl Serialize for ChallengeView
impl StructuralPartialEq for ChallengeView
Auto Trait Implementations§
impl Freeze for ChallengeView
impl RefUnwindSafe for ChallengeView
impl Send for ChallengeView
impl Sync for ChallengeView
impl Unpin for ChallengeView
impl UnsafeUnpin for ChallengeView
impl UnwindSafe for ChallengeView
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