pub struct ChatBackground {
pub type: BackgroundType,
}Expand description
This object represents a chat background. https://core.telegram.org/bots/api#chatbackground
Fields§
§type: BackgroundTypeType of the background
Implementations§
Source§impl ChatBackground
impl ChatBackground
Sourcepub fn new(type: BackgroundType) -> Self
pub fn new(type: BackgroundType) -> Self
This function creates an empty struct for the object ChatBackground.
Trait Implementations§
Source§impl Clone for ChatBackground
impl Clone for ChatBackground
Source§impl Debug for ChatBackground
impl Debug for ChatBackground
Source§impl<'de> Deserialize<'de> for ChatBackground
impl<'de> Deserialize<'de> for ChatBackground
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 ChatBackground
impl RefUnwindSafe for ChatBackground
impl Send for ChatBackground
impl Sync for ChatBackground
impl Unpin for ChatBackground
impl UnsafeUnpin for ChatBackground
impl UnwindSafe for ChatBackground
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