pub struct TermsOfService {
pub text: FormattedText,
pub min_user_age: i32,
pub show_popup: bool,
}
Expand description
Contains Telegram terms of service
Fields§
§text: FormattedText
Text of the terms of service
min_user_age: i32
The minimum age of a user to be able to accept the terms; 0 if age isn’t restricted
show_popup: bool
True, if a blocking popup with terms of service must be shown to the user
Trait Implementations§
Source§impl Clone for TermsOfService
impl Clone for TermsOfService
Source§fn clone(&self) -> TermsOfService
fn clone(&self) -> TermsOfService
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 TermsOfService
impl Debug for TermsOfService
Source§impl Default for TermsOfService
impl Default for TermsOfService
Source§fn default() -> TermsOfService
fn default() -> TermsOfService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TermsOfService
impl<'de> Deserialize<'de> for TermsOfService
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
Source§impl PartialEq for TermsOfService
impl PartialEq for TermsOfService
Source§impl Serialize for TermsOfService
impl Serialize for TermsOfService
impl StructuralPartialEq for TermsOfService
Auto Trait Implementations§
impl Freeze for TermsOfService
impl RefUnwindSafe for TermsOfService
impl Send for TermsOfService
impl Sync for TermsOfService
impl Unpin for TermsOfService
impl UnwindSafe for TermsOfService
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