pub struct IcyMetadata { /* private fields */ }Expand description
Metadata contained within a stream
Implementations§
Source§impl IcyMetadata
impl IcyMetadata
Sourcepub fn stream_title(&self) -> Option<&str>
pub fn stream_title(&self) -> Option<&str>
The title of the currently playing track.
Maps to the StreamTitle metadata value.
Sourcepub fn stream_url(&self) -> Option<&str>
pub fn stream_url(&self) -> Option<&str>
This could be an album art URL, an image URL for the stream itself, or some other
information. Maps to the StreamUrl metadata value.
Sourcepub fn custom_fields(&self) -> &HashMap<String, String>
pub fn custom_fields(&self) -> &HashMap<String, String>
Any additional fields found in the metadata.
Trait Implementations§
Source§impl Clone for IcyMetadata
impl Clone for IcyMetadata
Source§fn clone(&self) -> IcyMetadata
fn clone(&self) -> IcyMetadata
Returns a duplicate 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 IcyMetadata
impl Debug for IcyMetadata
Source§impl Default for IcyMetadata
impl Default for IcyMetadata
Source§fn default() -> IcyMetadata
fn default() -> IcyMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IcyMetadata
impl<'de> Deserialize<'de> for IcyMetadata
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
Source§impl FromStr for IcyMetadata
impl FromStr for IcyMetadata
Source§impl PartialEq for IcyMetadata
impl PartialEq for IcyMetadata
Source§impl Serialize for IcyMetadata
impl Serialize for IcyMetadata
impl Eq for IcyMetadata
impl StructuralPartialEq for IcyMetadata
Auto Trait Implementations§
impl Freeze for IcyMetadata
impl RefUnwindSafe for IcyMetadata
impl Send for IcyMetadata
impl Sync for IcyMetadata
impl Unpin for IcyMetadata
impl UnwindSafe for IcyMetadata
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