Struct rust_tdlib::types::LanguagePackInfo  
source · [−]pub struct LanguagePackInfo { /* private fields */ }Expand description
Contains information about a language pack
Implementations
sourceimpl LanguagePackInfo
 
impl LanguagePackInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> LanguagePackInfoBuilder
pub fn id(&self) -> &String
pub fn base_language_pack_id(&self) -> &String
pub fn name(&self) -> &String
pub fn native_name(&self) -> &String
pub fn plural_code(&self) -> &String
pub fn is_official(&self) -> bool
pub fn is_rtl(&self) -> bool
pub fn is_beta(&self) -> bool
pub fn is_installed(&self) -> bool
pub fn total_string_count(&self) -> i32
pub fn translated_string_count(&self) -> i32
pub fn local_string_count(&self) -> i32
pub fn translation_url(&self) -> &String
Trait Implementations
sourceimpl AsRef<LanguagePackInfo> for LanguagePackInfo
 
impl AsRef<LanguagePackInfo> for LanguagePackInfo
sourcefn as_ref(&self) -> &LanguagePackInfo
 
fn as_ref(&self) -> &LanguagePackInfo
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for LanguagePackInfo
 
impl Clone for LanguagePackInfo
sourcefn clone(&self) -> LanguagePackInfo
 
fn clone(&self) -> LanguagePackInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LanguagePackInfo
 
impl Debug for LanguagePackInfo
sourceimpl Default for LanguagePackInfo
 
impl Default for LanguagePackInfo
sourcefn default() -> LanguagePackInfo
 
fn default() -> LanguagePackInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LanguagePackInfo
 
impl<'de> Deserialize<'de> for LanguagePackInfo
sourcefn 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
sourceimpl Serialize for LanguagePackInfo
 
impl Serialize for LanguagePackInfo
Auto Trait Implementations
impl RefUnwindSafe for LanguagePackInfo
impl Send for LanguagePackInfo
impl Sync for LanguagePackInfo
impl Unpin for LanguagePackInfo
impl UnwindSafe for LanguagePackInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more