pub struct ThemeSettings { /* private fields */ }
Expand description
Describes theme settings
Implementations§
Source§impl 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§
Source§impl AsRef<ThemeSettings> for ThemeSettings
impl AsRef<ThemeSettings> for ThemeSettings
Source§fn as_ref(&self) -> &ThemeSettings
fn as_ref(&self) -> &ThemeSettings
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ThemeSettings
impl Clone for ThemeSettings
Source§fn clone(&self) -> ThemeSettings
fn clone(&self) -> ThemeSettings
Returns a copy 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 Default for ThemeSettings
impl Default for ThemeSettings
Source§fn default() -> ThemeSettings
fn default() -> ThemeSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeSettings
impl<'de> Deserialize<'de> for ThemeSettings
Source§fn 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
Auto Trait Implementations§
impl Freeze for ThemeSettings
impl RefUnwindSafe for ThemeSettings
impl Send for ThemeSettings
impl Sync for ThemeSettings
impl Unpin 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