Struct rust_tdlib::types::ThemeSettings
source · [−]pub struct ThemeSettings { /* private fields */ }Expand description
Describes theme settings
Implementations
sourceimpl ThemeSettings
impl ThemeSettings
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ThemeSettingsBuilder
pub fn accent_color(&self) -> i32
pub fn background(&self) -> &Option<Background>
pub fn outgoing_message_fill(&self) -> &BackgroundFill
pub fn animate_outgoing_message_fill(&self) -> bool
pub fn outgoing_message_accent_color(&self) -> i32
Trait Implementations
sourceimpl AsRef<ThemeSettings> for ThemeSettings
impl AsRef<ThemeSettings> for ThemeSettings
sourcefn as_ref(&self) -> &ThemeSettings
fn as_ref(&self) -> &ThemeSettings
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ThemeSettings
impl Clone for ThemeSettings
sourcefn clone(&self) -> ThemeSettings
fn clone(&self) -> ThemeSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ThemeSettings
impl Debug for ThemeSettings
sourceimpl Default for ThemeSettings
impl Default for ThemeSettings
sourcefn default() -> ThemeSettings
fn default() -> ThemeSettings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ThemeSettings
impl<'de> Deserialize<'de> for ThemeSettings
sourcefn 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
sourceimpl Serialize for ThemeSettings
impl Serialize for ThemeSettings
Auto Trait Implementations
impl RefUnwindSafe for ThemeSettings
impl Send for ThemeSettings
impl Sync for ThemeSettings
impl Unpin for ThemeSettings
impl UnwindSafe for ThemeSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more