pub struct Background { /* private fields */ }
Expand description
Describes a chat background
Implementations§
Source§impl Background
impl Background
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> BackgroundBuilder
pub fn id(&self) -> i64
pub fn is_default(&self) -> bool
pub fn is_dark(&self) -> bool
pub fn name(&self) -> &String
pub fn document(&self) -> &Option<Document>
pub fn type_(&self) -> &BackgroundType
Trait Implementations§
Source§impl AsRef<Background> for Background
impl AsRef<Background> for Background
Source§fn as_ref(&self) -> &Background
fn as_ref(&self) -> &Background
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for Background
impl Clone for Background
Source§fn clone(&self) -> Background
fn clone(&self) -> Background
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 Background
impl Debug for Background
Source§impl Default for Background
impl Default for Background
Source§fn default() -> Background
fn default() -> Background
Returns the “default value” for a type. Read more
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
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