pub struct VoiceNote {
pub duration: i32,
pub waveform: String,
pub mime_type: String,
pub speech_recognition_result: Option<SpeechRecognitionResult>,
pub voice: File,
}
Expand description
Describes a voice note
Fields§
§duration: i32
Duration of the voice note, in seconds; as defined by the sender
waveform: String
A waveform representation of the voice note in 5-bit format
mime_type: String
MIME type of the file; as defined by the sender. Usually, one of “audio/ogg” for Opus in an OGG container, “audio/mpeg” for an MP3 audio, or “audio/mp4” for an M4A audio
speech_recognition_result: Option<SpeechRecognitionResult>
Result of speech recognition in the voice note; may be null
voice: File
File 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
impl StructuralPartialEq for VoiceNote
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