pub struct ResendParams {
pub resend_type: ResendType,
pub email: Option<String>,
pub phone: Option<String>,
}Expand description
Parameters for resending an OTP or confirmation.
Fields§
§resend_type: ResendType§email: Option<String>§phone: Option<String>Implementations§
Source§impl ResendParams
impl ResendParams
Sourcepub fn email(email: &str, resend_type: ResendType) -> Self
pub fn email(email: &str, resend_type: ResendType) -> Self
Create resend params for email-based OTP types (Signup or EmailChange).
Sourcepub fn phone(phone: &str, resend_type: ResendType) -> Self
pub fn phone(phone: &str, resend_type: ResendType) -> Self
Create resend params for phone-based OTP types (Sms or PhoneChange).
Trait Implementations§
Source§impl Clone for ResendParams
impl Clone for ResendParams
Source§fn clone(&self) -> ResendParams
fn clone(&self) -> ResendParams
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 ResendParams
impl Debug for ResendParams
Auto Trait Implementations§
impl Freeze for ResendParams
impl RefUnwindSafe for ResendParams
impl Send for ResendParams
impl Sync for ResendParams
impl Unpin for ResendParams
impl UnsafeUnpin for ResendParams
impl UnwindSafe for ResendParams
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