Enum rust_tdlib::types::BackgroundFill
source · pub enum BackgroundFill {
FreeformGradient(BackgroundFillFreeformGradient),
Gradient(BackgroundFillGradient),
Solid(BackgroundFillSolid),
// some variants omitted
}
Expand description
Describes a fill of a background
Variants§
FreeformGradient(BackgroundFillFreeformGradient)
Describes a freeform gradient fill of a background
Gradient(BackgroundFillGradient)
Describes a gradient fill of a background
Solid(BackgroundFillSolid)
Describes a solid fill of a background
Implementations§
Trait Implementations§
source§impl AsRef<BackgroundFill> for BackgroundFill
impl AsRef<BackgroundFill> for BackgroundFill
source§fn as_ref(&self) -> &BackgroundFill
fn as_ref(&self) -> &BackgroundFill
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for BackgroundFill
impl Clone for BackgroundFill
source§fn clone(&self) -> BackgroundFill
fn clone(&self) -> BackgroundFill
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 BackgroundFill
impl Debug for BackgroundFill
source§impl Default for BackgroundFill
impl Default for BackgroundFill
source§fn default() -> BackgroundFill
fn default() -> BackgroundFill
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BackgroundFill
impl<'de> Deserialize<'de> for BackgroundFill
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