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
sourceimpl 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
sourceimpl AsRef<SetBackground> for SetBackground
impl AsRef<SetBackground> for SetBackground
sourcefn as_ref(&self) -> &SetBackground
fn as_ref(&self) -> &SetBackground
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SetBackground
impl Clone for SetBackground
sourcefn clone(&self) -> SetBackground
fn clone(&self) -> SetBackground
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 SetBackground
impl Debug for SetBackground
sourceimpl Default for SetBackground
impl Default for SetBackground
sourcefn default() -> SetBackground
fn default() -> SetBackground
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SetBackground
impl<'de> Deserialize<'de> for SetBackground
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 SetBackground
impl Serialize for SetBackground
Auto Trait Implementations
impl RefUnwindSafe for SetBackground
impl Send for SetBackground
impl Sync for SetBackground
impl Unpin for SetBackground
impl UnwindSafe for SetBackground
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