pub struct Country {
pub hidden: bool,
pub iso2: String,
pub default_name: String,
pub name: Option<String>,
pub country_codes: Vec<CountryCode>,
}Expand description
Generated from:
help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.CountryFields§
§iso2: String§default_name: String§name: Option<String>§country_codes: Vec<CountryCode>Trait Implementations§
Source§impl Deserializable for Country
impl Deserializable for Country
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 Identifiable for Country
impl Identifiable for Country
Source§const CONSTRUCTOR_ID: u32 = 0xc3878e23
const CONSTRUCTOR_ID: u32 = 0xc3878e23
The constructor ID as specified in the TL schema.
Source§impl Serializable for Country
impl Serializable for Country
impl StructuralPartialEq for Country
Auto Trait Implementations§
impl Freeze for Country
impl RefUnwindSafe for Country
impl Send for Country
impl Sync for Country
impl Unpin for Country
impl UnsafeUnpin for Country
impl UnwindSafe for Country
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