Struct rust_tdlib::types::LanguagePackInfo
source · pub struct LanguagePackInfo { /* private fields */ }
Expand description
Contains information about a language pack
Implementations§
source§impl 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§
source§impl AsRef<LanguagePackInfo> for LanguagePackInfo
impl AsRef<LanguagePackInfo> for LanguagePackInfo
source§fn as_ref(&self) -> &LanguagePackInfo
fn as_ref(&self) -> &LanguagePackInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for LanguagePackInfo
impl Clone for LanguagePackInfo
source§fn clone(&self) -> LanguagePackInfo
fn clone(&self) -> LanguagePackInfo
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 LanguagePackInfo
impl Debug for LanguagePackInfo
source§impl Default for LanguagePackInfo
impl Default for LanguagePackInfo
source§fn default() -> LanguagePackInfo
fn default() -> LanguagePackInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LanguagePackInfo
impl<'de> Deserialize<'de> for LanguagePackInfo
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