Expand description
This object represents a voice note.
Fields§
§file: FileMeta
Metadata of the voice file.
duration: u32
Duration of the audio in seconds as defined by sender.
mime_type: Option<Mime>
MIME type of the file as defined by sender.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Voice
impl<'de> Deserialize<'de> for Voice
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Voice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Voice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Voice> for Voice
impl PartialEq<Voice> for Voice
source§impl Serialize for Voice
impl Serialize for Voice
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Voice
impl StructuralEq for Voice
impl StructuralPartialEq for Voice
Auto Trait Implementations§
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnwindSafe for Voice
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.