pub struct ThemeSettings {
pub message_colors_animated: bool,
pub base_theme: BaseTheme,
pub accent_color: i32,
pub outbox_accent_color: Option<i32>,
pub message_colors: Option<Vec<i32>>,
pub wallpaper: Option<WallPaper>,
}Expand description
Generated from:
themeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector<int> wallpaper:flags.1?WallPaper = ThemeSettingsFields§
§message_colors_animated: bool§base_theme: BaseTheme§accent_color: i32§outbox_accent_color: Option<i32>§message_colors: Option<Vec<i32>>§wallpaper: Option<WallPaper>Trait Implementations§
Source§impl Clone for ThemeSettings
impl Clone for ThemeSettings
Source§fn clone(&self) -> ThemeSettings
fn clone(&self) -> ThemeSettings
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 ThemeSettings
impl Debug for ThemeSettings
Source§impl Deserializable for ThemeSettings
impl Deserializable for ThemeSettings
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<ThemeSettings> for ThemeSettings
impl From<ThemeSettings> for ThemeSettings
Source§fn from(x: ThemeSettings) -> Self
fn from(x: ThemeSettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for ThemeSettings
impl Identifiable for ThemeSettings
Source§const CONSTRUCTOR_ID: u32 = 0xfa58b6d4
const CONSTRUCTOR_ID: u32 = 0xfa58b6d4
The constructor ID as specified in the TL schema.
Source§impl PartialEq for ThemeSettings
impl PartialEq for ThemeSettings
Source§impl Serializable for ThemeSettings
impl Serializable for ThemeSettings
Source§impl TryFrom<ThemeSettings> for ThemeSettings
impl TryFrom<ThemeSettings> for ThemeSettings
Source§type Error = ThemeSettings
type Error = ThemeSettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for ThemeSettings
Auto Trait Implementations§
impl Freeze for ThemeSettings
impl RefUnwindSafe for ThemeSettings
impl Send for ThemeSettings
impl Sync for ThemeSettings
impl Unpin for ThemeSettings
impl UnsafeUnpin for ThemeSettings
impl UnwindSafe for ThemeSettings
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