Struct souvlaki::MediaMetadata
source · pub struct MediaMetadata<'a> {
pub title: Option<&'a str>,
pub album: Option<&'a str>,
pub artist: Option<&'a str>,
pub cover_url: Option<&'a str>,
pub duration: Option<Duration>,
}
Expand description
The metadata of a media item.
Fields§
§title: Option<&'a str>
§album: Option<&'a str>
§artist: Option<&'a str>
§cover_url: Option<&'a str>
§duration: Option<Duration>
Trait Implementations§
source§impl<'a> Clone for MediaMetadata<'a>
impl<'a> Clone for MediaMetadata<'a>
source§fn clone(&self) -> MediaMetadata<'a>
fn clone(&self) -> MediaMetadata<'a>
Returns a copy 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<'a> Debug for MediaMetadata<'a>
impl<'a> Debug for MediaMetadata<'a>
source§impl<'a> Default for MediaMetadata<'a>
impl<'a> Default for MediaMetadata<'a>
source§fn default() -> MediaMetadata<'a>
fn default() -> MediaMetadata<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq for MediaMetadata<'a>
impl<'a> PartialEq for MediaMetadata<'a>
source§fn eq(&self, other: &MediaMetadata<'a>) -> bool
fn eq(&self, other: &MediaMetadata<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for MediaMetadata<'a>
impl<'a> StructuralPartialEq for MediaMetadata<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MediaMetadata<'a>
impl<'a> Send for MediaMetadata<'a>
impl<'a> Sync for MediaMetadata<'a>
impl<'a> Unpin for MediaMetadata<'a>
impl<'a> UnwindSafe for MediaMetadata<'a>
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