Struct rust_tdlib::types::UpdateTermsOfService
source · pub struct UpdateTermsOfService { /* private fields */ }
Expand description
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason “Decline ToS update”
Implementations§
source§impl UpdateTermsOfService
impl UpdateTermsOfService
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UpdateTermsOfServiceBuilder
pub fn terms_of_service_id(&self) -> &String
pub fn terms_of_service(&self) -> &TermsOfService
Trait Implementations§
source§impl AsRef<UpdateTermsOfService> for UpdateTermsOfService
impl AsRef<UpdateTermsOfService> for UpdateTermsOfService
source§fn as_ref(&self) -> &UpdateTermsOfService
fn as_ref(&self) -> &UpdateTermsOfService
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for UpdateTermsOfService
impl Clone for UpdateTermsOfService
source§fn clone(&self) -> UpdateTermsOfService
fn clone(&self) -> UpdateTermsOfService
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 UpdateTermsOfService
impl Debug for UpdateTermsOfService
source§impl Default for UpdateTermsOfService
impl Default for UpdateTermsOfService
source§fn default() -> UpdateTermsOfService
fn default() -> UpdateTermsOfService
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdateTermsOfService
impl<'de> Deserialize<'de> for UpdateTermsOfService
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