pub struct Album {
pub id: u64,
pub name: String,
pub artist: Option<String>,
pub duration: u64,
pub year: Option<u64>,
pub genre: Option<String>,
pub song_count: u64,
/* private fields */
}
Fields
id: u64
name: String
artist: Option<String>
duration: u64
year: Option<u64>
genre: Option<String>
song_count: u64
Implementations
sourceimpl Album
impl Album
sourcepub fn get(client: &Client, id: usize) -> Result<Album>
pub fn get(client: &Client, id: usize) -> Result<Album>
Returns a single album from the Subsonic server.
Errors
Aside from errors the Client
may cause, the method will error if
there is no album matching the provided ID.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Album
impl<'de> Deserialize<'de> for Album
sourcefn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Media for Album
impl Media for Album
sourcefn has_cover_art(&self) -> bool
fn has_cover_art(&self) -> bool
Returns whether or not the media has an associated cover.
sourcefn cover_id(&self) -> Option<&str>
fn cover_id(&self) -> Option<&str>
Returns the cover ID associated with the media, if any. Read more
Auto Trait Implementations
impl RefUnwindSafe for Album
impl Send for Album
impl Sync for Album
impl Unpin for Album
impl UnwindSafe for Album
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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