pub struct PhoneNumberConfig {
pub send_otp: Option<Arc<dyn SendPhoneOtp>>,
pub send_password_reset_otp: Option<Arc<dyn SendPhoneOtp>>,
pub verify_otp: Option<Arc<dyn PhoneOtpVerifier>>,
pub phone_number_validator: Option<Arc<dyn PhoneNumberValidator>>,
pub sign_up_on_verification: Option<Arc<dyn PhoneSignupIdentity>>,
pub callback_on_verification: Option<Arc<dyn PhoneVerificationHook>>,
pub require_verification: bool,
pub otp_length: f64,
pub expires_in: f64,
pub allowed_attempts: f64,
}Fields§
§send_otp: Option<Arc<dyn SendPhoneOtp>>§send_password_reset_otp: Option<Arc<dyn SendPhoneOtp>>§verify_otp: Option<Arc<dyn PhoneOtpVerifier>>§phone_number_validator: Option<Arc<dyn PhoneNumberValidator>>§sign_up_on_verification: Option<Arc<dyn PhoneSignupIdentity>>§callback_on_verification: Option<Arc<dyn PhoneVerificationHook>>§require_verification: bool§otp_length: f64Raw numeric length. Safe positive fractions round up; NaN generates an empty code. Nonpositive and resource-unsafe lengths fail generation.
expires_in: f64Lifetime in seconds. Fractions retain JavaScript millisecond rounding; invalid dates fail before persistence.
allowed_attempts: f64Raw attempt budget compared with the persisted integer counter. Zero and negatives reject an unused proof; NaN and positive infinity never exhaust.
Trait Implementations§
Source§impl Clone for PhoneNumberConfig
impl Clone for PhoneNumberConfig
Source§impl Debug for PhoneNumberConfig
impl Debug for PhoneNumberConfig
Auto Trait Implementations§
impl !RefUnwindSafe for PhoneNumberConfig
impl !UnwindSafe for PhoneNumberConfig
impl Freeze for PhoneNumberConfig
impl Send for PhoneNumberConfig
impl Sync for PhoneNumberConfig
impl Unpin for PhoneNumberConfig
impl UnsafeUnpin for PhoneNumberConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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