Enum rust_tdlib::types::InputBackground  
source · [−]pub enum InputBackground {
    Local(InputBackgroundLocal),
    Remote(InputBackgroundRemote),
    // some variants omitted
}Expand description
Contains information about background to set
Variants
Local(InputBackgroundLocal)
A background from a local file
Remote(InputBackgroundRemote)
A background from the server
Implementations
Trait Implementations
sourceimpl AsRef<InputBackground> for InputBackground
 
impl AsRef<InputBackground> for InputBackground
sourcefn as_ref(&self) -> &InputBackground
 
fn as_ref(&self) -> &InputBackground
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputBackground
 
impl Clone for InputBackground
sourcefn clone(&self) -> InputBackground
 
fn clone(&self) -> InputBackground
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 InputBackground
 
impl Debug for InputBackground
sourceimpl Default for InputBackground
 
impl Default for InputBackground
sourceimpl<'de> Deserialize<'de> for InputBackground
 
impl<'de> Deserialize<'de> for InputBackground
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 InputBackground
 
impl Serialize for InputBackground
Auto Trait Implementations
impl RefUnwindSafe for InputBackground
impl Send for InputBackground
impl Sync for InputBackground
impl Unpin for InputBackground
impl UnwindSafe for InputBackground
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