Struct tdlib::types::TermsOfService
source · pub struct TermsOfService {
pub text: FormattedText,
pub min_user_age: i32,
pub show_popup: bool,
}Expand description
Contains Telegram terms of service
Fields§
§text: FormattedTextText of the terms of service
min_user_age: i32The minimum age of a user to be able to accept the terms; 0 if age isn’t restricted
show_popup: boolTrue, 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 copy 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<TermsOfService> for TermsOfService
impl PartialEq<TermsOfService> for TermsOfService
source§fn eq(&self, other: &TermsOfService) -> bool
fn eq(&self, other: &TermsOfService) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TermsOfService
impl Serialize for TermsOfService
impl StructuralPartialEq for TermsOfService
Auto Trait Implementations§
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