pub struct Verification {
pub id: Option<String>,
pub status: Option<Status>,
pub channel: Option<Channel>,
pub to: Option<String>,
pub expires_at: Option<String>,
pub attempts: Option<i32>,
pub max_attempts: Option<i32>,
pub send_count: Option<i32>,
pub last_sent_at: Option<Option<String>>,
pub created_at: Option<String>,
pub resend: Option<bool>,
}Expand description
Verification : A managed OTP verification. The code itself is never returned or stored (hash only).
Fields§
§id: Option<String>§status: Option<Status>§channel: Option<Channel>§to: Option<String>§expires_at: Option<String>§attempts: Option<i32>§max_attempts: Option<i32>§send_count: Option<i32>Accepted deliveries (initial send + resends); each bills one verification fee.
last_sent_at: Option<Option<String>>§created_at: Option<String>§resend: Option<bool>Present on create responses: true when an active verification was resent instead of created.
Implementations§
Source§impl Verification
impl Verification
Sourcepub fn new() -> Verification
pub fn new() -> Verification
A managed OTP verification. The code itself is never returned or stored (hash only).
Trait Implementations§
Source§impl Clone for Verification
impl Clone for Verification
Source§fn clone(&self) -> Verification
fn clone(&self) -> Verification
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 Verification
impl Debug for Verification
Source§impl Default for Verification
impl Default for Verification
Source§fn default() -> Verification
fn default() -> Verification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Verification
impl<'de> Deserialize<'de> for Verification
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 Verification
impl PartialEq for Verification
Source§impl Serialize for Verification
impl Serialize for Verification
impl StructuralPartialEq for Verification
Auto Trait Implementations§
impl Freeze for Verification
impl RefUnwindSafe for Verification
impl Send for Verification
impl Sync for Verification
impl Unpin for Verification
impl UnsafeUnpin for Verification
impl UnwindSafe for Verification
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