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§
source§impl AsRef<InputBackground> for InputBackground
impl AsRef<InputBackground> for InputBackground
source§fn as_ref(&self) -> &InputBackground
fn as_ref(&self) -> &InputBackground
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for InputBackground
impl Clone for InputBackground
source§fn clone(&self) -> InputBackground
fn clone(&self) -> InputBackground
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 InputBackground
impl Debug for InputBackground
source§impl Default for InputBackground
impl Default for InputBackground
source§fn default() -> InputBackground
fn default() -> InputBackground
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InputBackground
impl<'de> Deserialize<'de> for InputBackground
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