Struct rust_tdlib::types::ChatTheme
source · pub struct ChatTheme { /* private fields */ }
Expand description
Describes a chat theme
Implementations§
source§impl ChatTheme
impl ChatTheme
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatThemeBuilder
pub fn name(&self) -> &String
pub fn light_settings(&self) -> &ThemeSettings
pub fn dark_settings(&self) -> &ThemeSettings
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChatTheme
impl<'de> Deserialize<'de> for ChatTheme
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