pub struct AgeVerificationParameters {
pub min_age: i32,
pub verification_bot_username: String,
pub country: String,
}Expand description
Describes parameters for age verification of the current user
Fields§
§min_age: i32The minimum age required to view restricted content
verification_bot_username: StringUsername of the bot which main Web App may be used to verify age of the user
country: StringUnique name for the country or region, which legislation required age verification. May be used to get the corresponding localization key
Trait Implementations§
Source§impl Clone for AgeVerificationParameters
impl Clone for AgeVerificationParameters
Source§fn clone(&self) -> AgeVerificationParameters
fn clone(&self) -> AgeVerificationParameters
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 AgeVerificationParameters
impl Debug for AgeVerificationParameters
Source§impl Default for AgeVerificationParameters
impl Default for AgeVerificationParameters
Source§fn default() -> AgeVerificationParameters
fn default() -> AgeVerificationParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgeVerificationParameters
impl<'de> Deserialize<'de> for AgeVerificationParameters
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
impl StructuralPartialEq for AgeVerificationParameters
Auto Trait Implementations§
impl Freeze for AgeVerificationParameters
impl RefUnwindSafe for AgeVerificationParameters
impl Send for AgeVerificationParameters
impl Sync for AgeVerificationParameters
impl Unpin for AgeVerificationParameters
impl UnsafeUnpin for AgeVerificationParameters
impl UnwindSafe for AgeVerificationParameters
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