pub struct Background {
pub id: i64,
pub is_default: bool,
pub is_dark: bool,
pub name: String,
pub document: Option<Document>,
pub type: BackgroundType,
}
Expand description
Describes a chat background
Fields§
§id: i64
Unique background identifier
is_default: bool
True, if this is one of default backgrounds
is_dark: bool
True, if the background is dark and is recommended to be used with dark theme
name: String
Unique background name
document: Option<Document>
Document with the background; may be null. Null only for filled and chat theme backgrounds
type: BackgroundType
Type of the background
Trait Implementations§
Source§impl Clone for Background
impl Clone for Background
Source§fn clone(&self) -> Background
fn clone(&self) -> Background
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 Background
impl Debug for Background
Source§impl<'de> Deserialize<'de> for Background
impl<'de> Deserialize<'de> for Background
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 Background
impl PartialEq for Background
Source§impl Serialize for Background
impl Serialize for Background
impl StructuralPartialEq for Background
Auto Trait Implementations§
impl Freeze for Background
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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