Struct rust_tdlib::types::SetBackground
source · pub struct SetBackground { /* private fields */ }
Expand description
Changes the background selected by the user; adds background to the list of installed backgrounds
Implementations§
source§impl SetBackground
impl SetBackground
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SetBackgroundBuilder
pub fn background(&self) -> &InputBackground
pub fn type_(&self) -> &BackgroundType
pub fn for_dark_theme(&self) -> bool
Trait Implementations§
source§impl AsRef<SetBackground> for SetBackground
impl AsRef<SetBackground> for SetBackground
source§fn as_ref(&self) -> &SetBackground
fn as_ref(&self) -> &SetBackground
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SetBackground
impl Clone for SetBackground
source§fn clone(&self) -> SetBackground
fn clone(&self) -> SetBackground
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 SetBackground
impl Debug for SetBackground
source§impl Default for SetBackground
impl Default for SetBackground
source§fn default() -> SetBackground
fn default() -> SetBackground
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetBackground
impl<'de> Deserialize<'de> for SetBackground
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