pub struct Caption {
pub text: String,
pub caption_entities: Vec<MessageEntity>,
}Expand description
Caption for the animation, audio, document, photo, video or voice
Fields§
§text: StringCaption text
caption_entities: Vec<MessageEntity>For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Caption
impl<'de> Deserialize<'de> for Caption
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
impl StructuralPartialEq for Caption
Auto Trait Implementations§
impl Freeze for Caption
impl RefUnwindSafe for Caption
impl Send for Caption
impl Sync for Caption
impl Unpin for Caption
impl UnwindSafe for Caption
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