Struct apid_telegram_bot::Caption
source · [−]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
sourceimpl<'de> Deserialize<'de> for Caption
impl<'de> Deserialize<'de> for Caption
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
Auto Trait Implementations
impl RefUnwindSafe for Caption
impl Send for Caption
impl Sync for Caption
impl Unpin for Caption
impl UnwindSafe for Caption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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