pub struct AgeVerificationRequest {
pub min_age: Option<u32>,
pub max_age: Option<u32>,
pub ref_id: Option<String>,
pub callback_url: Option<Url>,
pub redirect_url: Option<Url>,
}Expand description
Request body for starting an age verification session.
At least one of min_age or max_age must be provided.
If both are given, max_age must be >= min_age.
Fields§
§min_age: Option<u32>Minimum age (inclusive).
max_age: Option<u32>Maximum age (inclusive).
ref_id: Option<String>Reference ID returned verbatim in the result and callback.
callback_url: Option<Url>URL to receive the result callback on success or failure.
redirect_url: Option<Url>URL to redirect the user to after completing age verification.
Implementations§
Trait Implementations§
Source§impl Clone for AgeVerificationRequest
impl Clone for AgeVerificationRequest
Source§fn clone(&self) -> AgeVerificationRequest
fn clone(&self) -> AgeVerificationRequest
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 AgeVerificationRequest
impl Debug for AgeVerificationRequest
Source§impl Default for AgeVerificationRequest
impl Default for AgeVerificationRequest
Source§fn default() -> AgeVerificationRequest
fn default() -> AgeVerificationRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgeVerificationRequest
impl RefUnwindSafe for AgeVerificationRequest
impl Send for AgeVerificationRequest
impl Sync for AgeVerificationRequest
impl Unpin for AgeVerificationRequest
impl UnsafeUnpin for AgeVerificationRequest
impl UnwindSafe for AgeVerificationRequest
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