Struct mpris_server::builder::MetadataBuilder
source · pub struct MetadataBuilder { /* private fields */ }Expand description
A builder used to create Metadata.
Implementations§
source§impl MetadataBuilder
impl MetadataBuilder
sourcepub fn other(
self,
key: impl Into<String>,
value: impl Into<Value<'static>>
) -> Self
pub fn other( self, key: impl Into<String>, value: impl Into<Value<'static>> ) -> Self
Insert a new key-value pair into the metadata.
pub fn trackid(self, trackid: impl Into<OwnedObjectPath>) -> Self
pub fn length(self, length: Time) -> Self
pub fn art_url(self, art_url: impl Into<Uri>) -> Self
pub fn album(self, album: impl Into<String>) -> Self
pub fn album_artist( self, album_artist: impl IntoIterator<Item = impl Into<String>> ) -> Self
pub fn artist(self, artist: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn lyrics(self, lyrics: impl Into<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: impl IntoIterator<Item = impl Into<String>> ) -> Self
pub fn composer( self, composer: impl IntoIterator<Item = impl Into<String>> ) -> Self
pub fn content_created(self, content_created: impl Into<DateTime>) -> Self
pub fn disc_number(self, disc_number: i32) -> Self
pub fn first_used(self, first_used: impl Into<DateTime>) -> Self
pub fn genre(self, genre: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn last_used(self, last_used: impl Into<DateTime>) -> Self
pub fn lyricist( self, lyricist: impl IntoIterator<Item = impl Into<String>> ) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn track_number(self, track_number: i32) -> Self
pub fn url(self, url: impl Into<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.