pub struct InputMediaVoiceNote {
pub media: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub duration: Option<u32>,
}Expand description
A voice message file to be sent.
Fields§
§media: StringFile to send: file_id, HTTP URL, or "attach://<n>".
caption: Option<String>Caption (0–1024 characters after entities parsing).
parse_mode: Option<ParseMode>Parse mode for the caption.
caption_entities: Option<Vec<MessageEntity>>Special entities in the caption.
duration: Option<u32>Duration of the voice message in seconds.
Trait Implementations§
Source§impl Clone for InputMediaVoiceNote
impl Clone for InputMediaVoiceNote
Source§fn clone(&self) -> InputMediaVoiceNote
fn clone(&self) -> InputMediaVoiceNote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputMediaVoiceNote
impl Debug for InputMediaVoiceNote
Source§impl<'de> Deserialize<'de> for InputMediaVoiceNote
impl<'de> Deserialize<'de> for InputMediaVoiceNote
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 InputMediaVoiceNote
impl RefUnwindSafe for InputMediaVoiceNote
impl Send for InputMediaVoiceNote
impl Sync for InputMediaVoiceNote
impl Unpin for InputMediaVoiceNote
impl UnsafeUnpin for InputMediaVoiceNote
impl UnwindSafe for InputMediaVoiceNote
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