pub struct LangPackLanguage {
pub official: bool,
pub rtl: bool,
pub beta: bool,
pub name: String,
pub native_name: String,
pub lang_code: String,
pub base_lang_code: Option<String>,
pub plural_code: String,
pub strings_count: i32,
pub translated_count: i32,
pub translations_url: String,
}Expand description
Generated from:
langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguageFields§
§official: bool§rtl: bool§beta: bool§name: String§native_name: String§lang_code: String§base_lang_code: Option<String>§plural_code: String§strings_count: i32§translated_count: i32§translations_url: StringTrait Implementations§
Source§impl Clone for LangPackLanguage
impl Clone for LangPackLanguage
Source§fn clone(&self) -> LangPackLanguage
fn clone(&self) -> LangPackLanguage
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 LangPackLanguage
impl Debug for LangPackLanguage
Source§impl Deserializable for LangPackLanguage
impl Deserializable for LangPackLanguage
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<LangPackLanguage> for LangPackLanguage
impl From<LangPackLanguage> for LangPackLanguage
Source§fn from(x: LangPackLanguage) -> Self
fn from(x: LangPackLanguage) -> Self
Converts to this type from the input type.
Source§impl Identifiable for LangPackLanguage
impl Identifiable for LangPackLanguage
Source§const CONSTRUCTOR_ID: u32 = 0xeeca5ce3
const CONSTRUCTOR_ID: u32 = 0xeeca5ce3
The constructor ID as specified in the TL schema.
Source§impl PartialEq for LangPackLanguage
impl PartialEq for LangPackLanguage
Source§impl Serializable for LangPackLanguage
impl Serializable for LangPackLanguage
Source§impl TryFrom<LangPackLanguage> for LangPackLanguage
impl TryFrom<LangPackLanguage> for LangPackLanguage
Source§type Error = LangPackLanguage
type Error = LangPackLanguage
The type returned in the event of a conversion error.
impl StructuralPartialEq for LangPackLanguage
Auto Trait Implementations§
impl Freeze for LangPackLanguage
impl RefUnwindSafe for LangPackLanguage
impl Send for LangPackLanguage
impl Sync for LangPackLanguage
impl Unpin for LangPackLanguage
impl UnsafeUnpin for LangPackLanguage
impl UnwindSafe for LangPackLanguage
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