pub struct NowPlayingItem {
pub id: Option<String>,
pub name: Option<String>,
pub run_time_ticks: Option<i64>,
pub album: Option<String>,
pub album_id: Option<String>,
pub album_artist: Option<String>,
pub artists: Option<Vec<String>>,
pub image_tags: Option<HashMap<String, String>>,
pub primary_image_tag: Option<String>,
pub album_primary_image_tag: Option<String>,
pub item_type: Option<String>,
}Fields§
§id: Option<String>§name: Option<String>§run_time_ticks: Option<i64>§album: Option<String>§album_id: Option<String>§album_artist: Option<String>§artists: Option<Vec<String>>§primary_image_tag: Option<String>§album_primary_image_tag: Option<String>§item_type: Option<String>Trait Implementations§
Source§impl Clone for NowPlayingItem
impl Clone for NowPlayingItem
Source§fn clone(&self) -> NowPlayingItem
fn clone(&self) -> NowPlayingItem
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 NowPlayingItem
impl Debug for NowPlayingItem
Source§impl<'de> Deserialize<'de> for NowPlayingItem
impl<'de> Deserialize<'de> for NowPlayingItem
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 From<&NowPlayingItem> for MergedMediaItem
impl From<&NowPlayingItem> for MergedMediaItem
Source§fn from(item: &NowPlayingItem) -> Self
fn from(item: &NowPlayingItem) -> Self
Converts to this type from the input type.
Source§impl NamedType for NowPlayingItem
impl NamedType for NowPlayingItem
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to [Type::inline] but returns a [NamedDataType] instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a [NamedDataType] instead.
Source§impl Serialize for NowPlayingItem
impl Serialize for NowPlayingItem
Source§impl Type for NowPlayingItem
impl Type for NowPlayingItem
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for NowPlayingItem
Auto Trait Implementations§
impl Freeze for NowPlayingItem
impl RefUnwindSafe for NowPlayingItem
impl Send for NowPlayingItem
impl Sync for NowPlayingItem
impl Unpin for NowPlayingItem
impl UnsafeUnpin for NowPlayingItem
impl UnwindSafe for NowPlayingItem
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> FunctionArg for Twhere
T: Type,
impl<T> FunctionArg for Twhere
T: Type,
§fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
Gets the type of an argument as a [
DataType]. Read more