pub struct LinkPreviewTypeExternalAudio {
pub url: String,
pub mime_type: String,
pub duration: i32,
}Expand description
The link is a link to an audio file
Fields§
§url: StringURL of the audio file
mime_type: StringMIME type of the audio file
duration: i32Duration of the audio, in seconds; 0 if unknown
Trait Implementations§
Source§impl Clone for LinkPreviewTypeExternalAudio
impl Clone for LinkPreviewTypeExternalAudio
Source§fn clone(&self) -> LinkPreviewTypeExternalAudio
fn clone(&self) -> LinkPreviewTypeExternalAudio
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 LinkPreviewTypeExternalAudio
impl Debug for LinkPreviewTypeExternalAudio
Source§impl Default for LinkPreviewTypeExternalAudio
impl Default for LinkPreviewTypeExternalAudio
Source§fn default() -> LinkPreviewTypeExternalAudio
fn default() -> LinkPreviewTypeExternalAudio
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkPreviewTypeExternalAudio
impl<'de> Deserialize<'de> for LinkPreviewTypeExternalAudio
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 PartialEq for LinkPreviewTypeExternalAudio
impl PartialEq for LinkPreviewTypeExternalAudio
Source§fn eq(&self, other: &LinkPreviewTypeExternalAudio) -> bool
fn eq(&self, other: &LinkPreviewTypeExternalAudio) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkPreviewTypeExternalAudio
Auto Trait Implementations§
impl Freeze for LinkPreviewTypeExternalAudio
impl RefUnwindSafe for LinkPreviewTypeExternalAudio
impl Send for LinkPreviewTypeExternalAudio
impl Sync for LinkPreviewTypeExternalAudio
impl Unpin for LinkPreviewTypeExternalAudio
impl UnsafeUnpin for LinkPreviewTypeExternalAudio
impl UnwindSafe for LinkPreviewTypeExternalAudio
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