pub struct CallbackTokenVerificationRequest {
pub email: Option<String>,
pub mobile: Option<String>,
pub token: String,
}Expand description
CallbackTokenVerificationRequest : Takes a user and a token, verifies the token belongs to the user and validates the alias that the token was sent from.
Fields§
§email: Option<String>§mobile: Option<String>§token: StringImplementations§
Source§impl CallbackTokenVerificationRequest
impl CallbackTokenVerificationRequest
Sourcepub fn new(token: String) -> CallbackTokenVerificationRequest
pub fn new(token: String) -> CallbackTokenVerificationRequest
Takes a user and a token, verifies the token belongs to the user and validates the alias that the token was sent from.
Trait Implementations§
Source§impl Clone for CallbackTokenVerificationRequest
impl Clone for CallbackTokenVerificationRequest
Source§fn clone(&self) -> CallbackTokenVerificationRequest
fn clone(&self) -> CallbackTokenVerificationRequest
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 Default for CallbackTokenVerificationRequest
impl Default for CallbackTokenVerificationRequest
Source§fn default() -> CallbackTokenVerificationRequest
fn default() -> CallbackTokenVerificationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallbackTokenVerificationRequest
impl<'de> Deserialize<'de> for CallbackTokenVerificationRequest
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 CallbackTokenVerificationRequest
impl PartialEq for CallbackTokenVerificationRequest
Source§fn eq(&self, other: &CallbackTokenVerificationRequest) -> bool
fn eq(&self, other: &CallbackTokenVerificationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CallbackTokenVerificationRequest
Auto Trait Implementations§
impl Freeze for CallbackTokenVerificationRequest
impl RefUnwindSafe for CallbackTokenVerificationRequest
impl Send for CallbackTokenVerificationRequest
impl Sync for CallbackTokenVerificationRequest
impl Unpin for CallbackTokenVerificationRequest
impl UnwindSafe for CallbackTokenVerificationRequest
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