pub enum SendContent {
Text(String),
Image {
data: Vec<u8>,
caption: Option<String>,
},
Video {
data: Vec<u8>,
caption: Option<String>,
},
File {
data: Vec<u8>,
file_name: String,
caption: Option<String>,
},
}Expand description
Content to send via reply_media / send_media_with_context.
Variants§
Auto Trait Implementations§
impl Freeze for SendContent
impl RefUnwindSafe for SendContent
impl Send for SendContent
impl Sync for SendContent
impl Unpin for SendContent
impl UnsafeUnpin for SendContent
impl UnwindSafe for SendContent
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