#[non_exhaustive]pub struct VerificationRequest { /* private fields */ }Expand description
Provider-independent input for one verification attempt.
Implementations§
Source§impl VerificationRequest
impl VerificationRequest
Sourcepub const fn new(token: CaptchaToken) -> VerificationRequest
pub const fn new(token: CaptchaToken) -> VerificationRequest
Creates a request containing the required client token.
Sourcepub const fn token(&self) -> &CaptchaToken
pub const fn token(&self) -> &CaptchaToken
Returns the opaque client token.
Sourcepub const fn remote_ip(&self) -> Option<IpAddr>
pub const fn remote_ip(&self) -> Option<IpAddr>
Returns the end-user IP address, when one was supplied.
Sourcepub const fn with_remote_ip(self, remote_ip: IpAddr) -> VerificationRequest
pub const fn with_remote_ip(self, remote_ip: IpAddr) -> VerificationRequest
Adds the end-user IP address.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerificationRequest
impl RefUnwindSafe for VerificationRequest
impl Send for VerificationRequest
impl Sync for VerificationRequest
impl Unpin for VerificationRequest
impl UnsafeUnpin for VerificationRequest
impl UnwindSafe for VerificationRequest
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