pub struct VoiceNote {
    pub duration: i32,
    pub waveform: String,
    pub mime_type: String,
    pub voice: File,
}Expand description
Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel
Fields§
§duration: i32Duration of the voice note, in seconds; as defined by the sender
waveform: StringA waveform representation of the voice note in 5-bit format
mime_type: StringMIME type of the file; as defined by the sender
voice: FileFile containing the voice note
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VoiceNote
 
impl<'de> Deserialize<'de> for VoiceNote
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 VoiceNote
impl RefUnwindSafe for VoiceNote
impl Send for VoiceNote
impl Sync for VoiceNote
impl Unpin for VoiceNote
impl UnwindSafe for VoiceNote
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