pub struct InputMessageAudio {
pub audio: InputFile,
pub album_cover_thumbnail: InputThumbnail,
pub duration: i32,
pub title: String,
pub performer: String,
pub caption: FormattedText,
}
Expand description
An audio message
Fields§
§audio: InputFile
Audio file to be sent
album_cover_thumbnail: InputThumbnail
Thumbnail of the cover for the album, if available
duration: i32
Duration of the audio, in seconds; may be replaced by the server
title: String
Title of the audio; 0-64 characters; may be replaced by the server
performer: String
Performer of the audio; 0-64 characters, may be replaced by the server
caption: FormattedText
Audio caption; 0-GetOption(“message_caption_length_max”) characters
Trait Implementations§
Source§impl Clone for InputMessageAudio
impl Clone for InputMessageAudio
Source§fn clone(&self) -> InputMessageAudio
fn clone(&self) -> InputMessageAudio
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 InputMessageAudio
impl Debug for InputMessageAudio
Source§impl<'de> Deserialize<'de> for InputMessageAudio
impl<'de> Deserialize<'de> for InputMessageAudio
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 InputMessageAudio
impl RefUnwindSafe for InputMessageAudio
impl Send for InputMessageAudio
impl Sync for InputMessageAudio
impl Unpin for InputMessageAudio
impl UnwindSafe for InputMessageAudio
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