pub struct MessageDataVoice {
pub data: Voice,
pub caption: Option<Text>,
}Expand description
Message is a voice message, information about the file.
Fields§
§data: VoiceVoice data.
caption: Option<Text>Voice caption.
Implementations§
Source§impl MessageDataVoice
impl MessageDataVoice
Sourcepub fn with_caption<T>(self, value: T) -> Self
pub fn with_caption<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for MessageDataVoice
impl Clone for MessageDataVoice
Source§fn clone(&self) -> MessageDataVoice
fn clone(&self) -> MessageDataVoice
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 MessageDataVoice
impl Debug for MessageDataVoice
Source§impl<'de> Deserialize<'de> for MessageDataVoice
impl<'de> Deserialize<'de> for MessageDataVoice
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
Source§impl From<MessageDataVoice> for MessageData
impl From<MessageDataVoice> for MessageData
Source§fn from(value: MessageDataVoice) -> Self
fn from(value: MessageDataVoice) -> Self
Converts to this type from the input type.
Source§impl From<Voice> for MessageDataVoice
impl From<Voice> for MessageDataVoice
Source§impl PartialEq for MessageDataVoice
impl PartialEq for MessageDataVoice
Source§fn eq(&self, other: &MessageDataVoice) -> bool
fn eq(&self, other: &MessageDataVoice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageDataVoice
impl Serialize for MessageDataVoice
impl StructuralPartialEq for MessageDataVoice
Auto Trait Implementations§
impl Freeze for MessageDataVoice
impl RefUnwindSafe for MessageDataVoice
impl Send for MessageDataVoice
impl Sync for MessageDataVoice
impl Unpin for MessageDataVoice
impl UnsafeUnpin for MessageDataVoice
impl UnwindSafe for MessageDataVoice
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