Enum rust_tdlib::types::BackgroundType
source · [−]pub enum BackgroundType {
Fill(BackgroundTypeFill),
Pattern(BackgroundTypePattern),
Wallpaper(BackgroundTypeWallpaper),
// some variants omitted
}
Expand description
Describes the type of a background
Variants
Fill(BackgroundTypeFill)
A filled background
Pattern(BackgroundTypePattern)
A PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user
Wallpaper(BackgroundTypeWallpaper)
A wallpaper in JPEG format
Implementations
Trait Implementations
sourceimpl AsRef<BackgroundType> for BackgroundType
impl AsRef<BackgroundType> for BackgroundType
sourcefn as_ref(&self) -> &BackgroundType
fn as_ref(&self) -> &BackgroundType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for BackgroundType
impl Clone for BackgroundType
sourcefn clone(&self) -> BackgroundType
fn clone(&self) -> BackgroundType
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 BackgroundType
impl Debug for BackgroundType
sourceimpl Default for BackgroundType
impl Default for BackgroundType
sourceimpl<'de> Deserialize<'de> for BackgroundType
impl<'de> Deserialize<'de> for BackgroundType
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 BackgroundType
impl Serialize for BackgroundType
Auto Trait Implementations
impl RefUnwindSafe for BackgroundType
impl Send for BackgroundType
impl Sync for BackgroundType
impl Unpin for BackgroundType
impl UnwindSafe for BackgroundType
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