Struct termusiclib::songtag::SongTag
source · pub struct SongTag { /* private fields */ }Implementations§
source§impl SongTag
impl SongTag
pub fn artist(&self) -> Option<&str>
pub fn album(&self) -> Option<&str>
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Optionally return the title of the song
If None it wasn’t able to read the tags
pub fn lang_ext(&self) -> Option<&str>
pub const fn service_provider(&self) -> Option<&ServiceProvider>
pub fn url(&self) -> Option<String>
pub fn fetch_lyric(&self) -> Result<String>
pub fn fetch_photo(&self) -> Result<Picture>
pub fn download(&self, file: &str, tx_tageditor: &Sender<Msg>) -> Result<()>
Trait Implementations§
source§impl<'de> Deserialize<'de> for SongTag
impl<'de> Deserialize<'de> for SongTag
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
Auto Trait Implementations§
impl Freeze for SongTag
impl RefUnwindSafe for SongTag
impl Send for SongTag
impl Sync for SongTag
impl Unpin for SongTag
impl UnwindSafe for SongTag
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