Struct Metadata

Source
pub struct Metadata {
Show 96 fields pub key: String, pub rating_key: String, pub guid: Option<Guid>, pub primary_guid: Option<Guid>, pub metadata_type: Option<MetadataType>, pub smart: Option<bool>, pub allow_sync: Option<bool>, pub title: String, pub title_sort: Option<String>, pub original_title: Option<String>, pub studio: Option<String>, pub year: Option<u32>, pub min_year: Option<u32>, pub max_year: Option<u32>, pub content_rating: Option<String>, pub summary: Option<String>, pub rating: Option<f32>, pub rating_count: Option<u32>, pub rating_image: Option<String>, pub audience_rating: Option<f32>, pub audience_rating_image: Option<String>, pub user_rating: Option<f32>, pub last_rated_at: Option<OffsetDateTime>, pub tagline: Option<String>, pub duration: Option<u64>, pub originally_available_at: Option<Date>, pub thumb: Option<String>, pub art: Option<String>, pub theme: Option<String>, pub composite: Option<String>, pub banner: Option<String>, pub icon: Option<String>, pub index: Option<u32>, pub playlist_item_id: Option<u32>, pub child_count: Option<u32>, pub season_count: Option<u32>, pub leaf_count: Option<u32>, pub viewed_leaf_count: Option<u32>, pub skip_children: Option<bool>, pub view_count: Option<u64>, pub skip_count: Option<u64>, pub last_viewed_at: Option<OffsetDateTime>, pub created_at_tz_offset: Option<String>, pub created_at_accuracy: Option<String>, pub added_at: Option<OffsetDateTime>, pub deleted_at: Option<OffsetDateTime>, pub updated_at: Option<OffsetDateTime>, pub loudness_analysis_version: Option<u32>, pub has_premium_extras: Option<bool>, pub has_premium_primary_extra: Option<bool>, pub view_offset: Option<u64>, pub chapter_source: Option<ChapterSource>, pub primary_extra_key: Option<String>, pub has_premium_lyrics: Option<bool>, pub music_analysis_version: Option<String>, pub library_section_id: Option<u32>, pub library_section_title: Option<String>, pub library_section_key: Option<String>, pub parent: Box<ParentMetadata>, pub grand_parent: Box<GrandParentMetadata>, pub guids: Vec<Guid>, pub collections: Vec<Collection>, pub similar: Vec<Tag>, pub genres: Vec<Tag>, pub directors: Vec<Role>, pub producers: Vec<Role>, pub writers: Vec<Role>, pub countries: Vec<Tag>, pub ratings: Vec<Rating>, pub roles: Vec<Role>, pub locations: Vec<Location>, pub fields: Vec<Field>, pub moods: Vec<Tag>, pub formats: Vec<Tag>, pub sub_formats: Vec<Tag>, pub styles: Vec<Tag>, pub reviews: Vec<Review>, pub chapters: Vec<Chapter>, pub labels: Vec<Tag>, pub preferences: Option<Box<Preferences>>, pub extras: Option<Extras>, pub on_deck: Option<Box<OnDeck>>, pub markers: Vec<Marker>, pub media: Option<Vec<Media>>, pub vast: Option<Vec<Link>>, pub public_pages_url: Option<String>, pub slug: Option<String>, pub user_state: Option<bool>, pub imdb_rating_count: Option<u64>, pub source: Option<String>, pub image: Option<Vec<Image>>, pub studios: Option<Vec<Tag>>, pub language_override: Option<String>, pub content: Option<String>, pub collection_sort: Option<String>, pub skip_parent: Option<bool>,
}

Fields§

§key: String§rating_key: String§guid: Option<Guid>§primary_guid: Option<Guid>§metadata_type: Option<MetadataType>§smart: Option<bool>§allow_sync: Option<bool>§title: String§title_sort: Option<String>§original_title: Option<String>§studio: Option<String>§year: Option<u32>§min_year: Option<u32>§max_year: Option<u32>§content_rating: Option<String>§summary: Option<String>§rating: Option<f32>§rating_count: Option<u32>§rating_image: Option<String>§audience_rating: Option<f32>§audience_rating_image: Option<String>§user_rating: Option<f32>§last_rated_at: Option<OffsetDateTime>§tagline: Option<String>§duration: Option<u64>§originally_available_at: Option<Date>§thumb: Option<String>§art: Option<String>§theme: Option<String>§composite: Option<String>§banner: Option<String>§icon: Option<String>§index: Option<u32>§playlist_item_id: Option<u32>§child_count: Option<u32>§season_count: Option<u32>§leaf_count: Option<u32>§viewed_leaf_count: Option<u32>§skip_children: Option<bool>§view_count: Option<u64>§skip_count: Option<u64>§last_viewed_at: Option<OffsetDateTime>§created_at_tz_offset: Option<String>§created_at_accuracy: Option<String>§added_at: Option<OffsetDateTime>§deleted_at: Option<OffsetDateTime>§updated_at: Option<OffsetDateTime>§loudness_analysis_version: Option<u32>§has_premium_extras: Option<bool>§has_premium_primary_extra: Option<bool>§view_offset: Option<u64>§chapter_source: Option<ChapterSource>§primary_extra_key: Option<String>§has_premium_lyrics: Option<bool>§music_analysis_version: Option<String>§library_section_id: Option<u32>§library_section_title: Option<String>§library_section_key: Option<String>§parent: Box<ParentMetadata>§grand_parent: Box<GrandParentMetadata>§guids: Vec<Guid>§collections: Vec<Collection>§similar: Vec<Tag>§genres: Vec<Tag>§directors: Vec<Role>§producers: Vec<Role>§writers: Vec<Role>§countries: Vec<Tag>§ratings: Vec<Rating>§roles: Vec<Role>§locations: Vec<Location>§fields: Vec<Field>§moods: Vec<Tag>§formats: Vec<Tag>§sub_formats: Vec<Tag>§styles: Vec<Tag>§reviews: Vec<Review>§chapters: Vec<Chapter>§labels: Vec<Tag>§preferences: Option<Box<Preferences>>§extras: Option<Extras>§on_deck: Option<Box<OnDeck>>§markers: Vec<Marker>§media: Option<Vec<Media>>§vast: Option<Vec<Link>>§public_pages_url: Option<String>§slug: Option<String>§user_state: Option<bool>§imdb_rating_count: Option<u64>§source: Option<String>§image: Option<Vec<Image>>§studios: Option<Vec<Tag>>§language_override: Option<String>§content: Option<String>§collection_sort: Option<String>§skip_parent: Option<bool>

Trait Implementations§

Source§

impl Clone for Metadata

Source§

fn clone(&self) -> Metadata

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Metadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Metadata

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,