Struct mpris_server::MetadataBuilder
source · pub struct MetadataBuilder { /* private fields */ }Implementations§
source§impl MetadataBuilder
impl MetadataBuilder
pub fn trackid(self, trackid: OwnedObjectPath) -> Self
pub fn length(self, length: TimeInUs) -> Self
pub fn art_url(self, art_url: Uri) -> Self
pub fn album(self, album: String) -> Self
pub fn album_artist(self, album_artist: Vec<String>) -> Self
pub fn artist(self, artist: Vec<String>) -> Self
pub fn lyrics(self, lyrics: String) -> Self
pub fn audio_bpm(self, audio_bpm: i32) -> Self
pub fn auto_rating(self, auto_rating: f64) -> Self
pub fn comment(self, comment: Vec<String>) -> Self
pub fn composer(self, composer: Vec<String>) -> Self
pub fn content_created(self, content_created: DateTime) -> Self
pub fn disc_number(self, disc_number: i32) -> Self
pub fn first_used(self, first_used: DateTime) -> Self
pub fn genre(self, genre: Vec<String>) -> Self
pub fn last_used(self, last_used: DateTime) -> Self
pub fn lyricist(self, lyricist: Vec<String>) -> Self
pub fn title(self, title: String) -> Self
pub fn track_number(self, track_number: i32) -> Self
pub fn url(self, url: Uri) -> Self
pub fn use_count(self, use_count: i32) -> Self
pub fn user_rating(self, user_rating: f64) -> Self
pub fn build(self) -> Metadata
Trait Implementations§
source§impl Clone for MetadataBuilder
impl Clone for MetadataBuilder
source§fn clone(&self) -> MetadataBuilder
fn clone(&self) -> MetadataBuilder
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 Debug for MetadataBuilder
impl Debug for MetadataBuilder
source§impl Default for MetadataBuilder
impl Default for MetadataBuilder
source§fn default() -> MetadataBuilder
fn default() -> MetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MetadataBuilder
impl Send for MetadataBuilder
impl Sync for MetadataBuilder
impl Unpin for MetadataBuilder
impl UnwindSafe for MetadataBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.