pub struct CachedItem {Show 22 fields
pub id: String,
pub name: String,
pub item_type: String,
pub parent_id: Option<String>,
pub library_id: Option<String>,
pub overview: Option<String>,
pub genres: Option<String>,
pub runtime_ticks: Option<i64>,
pub production_year: Option<i32>,
pub community_rating: Option<f64>,
pub official_rating: Option<String>,
pub primary_image_tag: Option<String>,
pub album_id: Option<String>,
pub album_name: Option<String>,
pub album_artist: Option<String>,
pub artists: Option<String>,
pub index_number: Option<i32>,
pub series_id: Option<String>,
pub series_name: Option<String>,
pub season_id: Option<String>,
pub season_name: Option<String>,
pub parent_index_number: Option<i32>,
}Expand description
Cached media item returned to frontend
Fields§
§id: String§name: String§item_type: String§parent_id: Option<String>§library_id: Option<String>§overview: Option<String>§genres: Option<String>§runtime_ticks: Option<i64>§production_year: Option<i32>§community_rating: Option<f64>§official_rating: Option<String>§primary_image_tag: Option<String>§album_id: Option<String>§album_name: Option<String>§album_artist: Option<String>§artists: Option<String>§index_number: Option<i32>§series_id: Option<String>§series_name: Option<String>§season_id: Option<String>§season_name: Option<String>§parent_index_number: Option<i32>Trait Implementations§
Source§impl Clone for CachedItem
impl Clone for CachedItem
Source§fn clone(&self) -> CachedItem
fn clone(&self) -> CachedItem
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 CachedItem
impl Debug for CachedItem
Source§impl<'de> Deserialize<'de> for CachedItem
impl<'de> Deserialize<'de> for CachedItem
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 NamedType for CachedItem
impl NamedType for CachedItem
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 CachedItem
impl Serialize for CachedItem
Source§impl Type for CachedItem
impl Type for CachedItem
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 CachedItem
Auto Trait Implementations§
impl Freeze for CachedItem
impl RefUnwindSafe for CachedItem
impl Send for CachedItem
impl Sync for CachedItem
impl Unpin for CachedItem
impl UnsafeUnpin for CachedItem
impl UnwindSafe for CachedItem
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