pub struct CurrentTrack {
pub title: Option<String>,
pub artist: Option<String>,
pub album: Option<String>,
pub album_art_uri: Option<String>,
pub uri: Option<String>,
}Expand description
Information about the currently playing track
Fields§
§title: Option<String>§artist: Option<String>§album: Option<String>§album_art_uri: Option<String>§uri: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CurrentTrack
impl Clone for CurrentTrack
Source§fn clone(&self) -> CurrentTrack
fn clone(&self) -> CurrentTrack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CurrentTrack
impl Debug for CurrentTrack
Source§impl Default for CurrentTrack
impl Default for CurrentTrack
Source§fn default() -> CurrentTrack
fn default() -> CurrentTrack
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentTrack
impl<'de> Deserialize<'de> for CurrentTrack
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurrentTrack, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurrentTrack, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Fetchable for CurrentTrack
impl Fetchable for CurrentTrack
Source§type Operation = GetPositionInfoOperation
type Operation = GetPositionInfoOperation
The UPnP operation type used to fetch this property
Source§fn build_operation() -> Result<ComposableOperation<Self::Operation>, SdkError>
fn build_operation() -> Result<ComposableOperation<Self::Operation>, SdkError>
Build the operation to fetch this property
Source§fn from_response(response: GetPositionInfoResponse) -> Self
fn from_response(response: GetPositionInfoResponse) -> Self
Convert the operation response to the property value
Source§impl PartialEq for CurrentTrack
impl PartialEq for CurrentTrack
Source§impl Property for CurrentTrack
impl Property for CurrentTrack
Source§impl Serialize for CurrentTrack
impl Serialize for CurrentTrack
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl SonosProperty for CurrentTrack
impl SonosProperty for CurrentTrack
Source§fn to_change(&self) -> Option<PropertyChange>
fn to_change(&self) -> Option<PropertyChange>
Wrap this value in its
PropertyChange variant, for the change event
payload. Read moreimpl StructuralPartialEq for CurrentTrack
Auto Trait Implementations§
impl Freeze for CurrentTrack
impl RefUnwindSafe for CurrentTrack
impl Send for CurrentTrack
impl Sync for CurrentTrack
impl Unpin for CurrentTrack
impl UnsafeUnpin for CurrentTrack
impl UnwindSafe for CurrentTrack
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