pub enum BackgroundType {
Wallpaper(BackgroundTypeWallpaper),
Pattern(BackgroundTypePattern),
Fill(BackgroundTypeFill),
ChatTheme(BackgroundTypeChatTheme),
}
Variants§
Wallpaper(BackgroundTypeWallpaper)
A wallpaper in JPEG format
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
Fill(BackgroundTypeFill)
A filled background
ChatTheme(BackgroundTypeChatTheme)
A background from a chat theme; can be used only as a chat background in channels
Trait Implementations§
Source§impl Clone for BackgroundType
impl Clone for BackgroundType
Source§fn clone(&self) -> BackgroundType
fn clone(&self) -> BackgroundType
Returns a duplicate 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 BackgroundType
impl Debug for BackgroundType
Source§impl<'de> Deserialize<'de> for BackgroundType
impl<'de> Deserialize<'de> for BackgroundType
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
Source§impl PartialEq for BackgroundType
impl PartialEq for BackgroundType
Source§impl Serialize for BackgroundType
impl Serialize for BackgroundType
impl StructuralPartialEq for BackgroundType
Auto Trait Implementations§
impl Freeze for BackgroundType
impl RefUnwindSafe for BackgroundType
impl Send for BackgroundType
impl Sync for BackgroundType
impl Unpin for BackgroundType
impl UnwindSafe for BackgroundType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more