Struct rust_tdlib::types::Background
source · [−]pub struct Background { /* private fields */ }
Expand description
Describes a chat background
Implementations
sourceimpl 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
sourceimpl AsRef<Background> for Background
impl AsRef<Background> for Background
sourcefn as_ref(&self) -> &Background
fn as_ref(&self) -> &Background
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for Background
impl Clone for Background
sourcefn clone(&self) -> Background
fn clone(&self) -> Background
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 Background
impl Debug for Background
sourceimpl Default for Background
impl Default for Background
sourcefn default() -> Background
fn default() -> Background
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Background
impl<'de> Deserialize<'de> for Background
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 Background
impl Serialize for Background
Auto Trait Implementations
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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