pub struct Theme {
pub creator: bool,
pub default: bool,
pub for_chat: bool,
pub id: i64,
pub access_hash: i64,
pub slug: String,
pub title: String,
pub document: Option<Document>,
pub settings: Option<Vec<ThemeSettings>>,
pub emoticon: Option<String>,
pub installs_count: Option<i32>,
}Expand description
Generated from:
theme#a00e67d6 flags:# creator:flags.0?true default:flags.1?true for_chat:flags.5?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?Vector<ThemeSettings> emoticon:flags.6?string installs_count:flags.4?int = ThemeFields§
§creator: bool§default: bool§for_chat: bool§id: i64§access_hash: i64§slug: String§title: String§document: Option<Document>§settings: Option<Vec<ThemeSettings>>§emoticon: Option<String>§installs_count: Option<i32>Trait Implementations§
Source§impl Deserializable for Theme
impl Deserializable for Theme
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 Theme
impl Identifiable for Theme
Source§const CONSTRUCTOR_ID: u32 = 0xa00e67d6
const CONSTRUCTOR_ID: u32 = 0xa00e67d6
The constructor ID as specified in the TL schema.
Source§impl Serializable for Theme
impl Serializable for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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