Struct rust_tdlib::types::Audio  
source · [−]pub struct Audio { /* private fields */ }Expand description
Describes an audio file. Audio is usually in MP3 or M4A format
Implementations
sourceimpl Audio
 
impl Audio
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AudioBuilder
pub fn duration(&self) -> i32
pub fn title(&self) -> &String
pub fn performer(&self) -> &String
pub fn file_name(&self) -> &String
pub fn mime_type(&self) -> &String
pub fn album_cover_minithumbnail(&self) -> &Option<Minithumbnail>
pub fn album_cover_thumbnail(&self) -> &Option<Thumbnail>
pub fn audio(&self) -> &File
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Audio
 
impl<'de> Deserialize<'de> for Audio
sourcefn 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 RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnwindSafe for Audio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more