pub struct Attachment {Show 14 fields
pub attachment_type: String,
pub photo: Option<Photo>,
pub video: Option<Video>,
pub audio: Option<Audio>,
pub doc: Option<Document>,
pub link: Option<Link>,
pub market: Option<Market>,
pub market_album: Option<MarketAlbum>,
pub wall: Option<WallPost>,
pub wall_reply: Option<WallReply>,
pub sticker: Option<Sticker>,
pub gift: Option<Gift>,
pub poll: Option<Poll>,
pub audio_message: Option<AudioMessage>,
}Expand description
Message attachment
Fields§
§attachment_type: StringAttachment type
photo: Option<Photo>Photo
video: Option<Video>Video
audio: Option<Audio>Audio
doc: Option<Document>Document
link: Option<Link>Link
market: Option<Market>Market item
market_album: Option<MarketAlbum>Market album
wall: Option<WallPost>Wall post
wall_reply: Option<WallReply>Wall reply
sticker: Option<Sticker>Sticker
gift: Option<Gift>Gift
poll: Option<Poll>Poll
audio_message: Option<AudioMessage>Audio message
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 Attachment
impl Debug for Attachment
Source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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 Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
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