pub struct PlaylistData {Show 15 fields
pub draft_or_live: DraftOrLive,
pub display_name: String,
pub language: String,
pub description: String,
pub last_edited: Option<DateTime<Utc>>,
pub privacy_level: PrivacyLevel,
pub other_keywords: String,
pub translated_keywords: String,
pub translated_description: HashMap<String, String>,
pub cover: Option<LiteModule>,
pub age_ranges: Vec<AgeRangeId>,
pub affiliations: Vec<AffiliationId>,
pub categories: Vec<CategoryId>,
pub additional_resources: Vec<AdditionalResource>,
pub items: Vec<JigId>,
}Expand description
The over-the-wire representation of a Playlist’s data. This can either be the live copy or the draft copy.
Fields§
§draft_or_live: DraftOrLiveWhether the Playlist data is the live copy or the draft.
display_name: StringThe Playlist’s name.
language: StringThe language the Playlist uses.
NOTE: in the format en, eng, en-US, eng-US or eng-USA. To be replaced with a struct that enforces this.
description: StringDescription of the Playlist.
last_edited: Option<DateTime<Utc>>When the Playlist was last edited
privacy_level: PrivacyLevelThe privacy level on the Playlist.
other_keywords: StringOther keywords used to searched for Playlists
translated_keywords: Stringtranslated keywords used to searched for Playlists
translated_description: HashMap<String, String>translated descriptions
cover: Option<LiteModule>This Playlist’s cover.
age_ranges: Vec<AgeRangeId>This Playlist’s age ranges.
affiliations: Vec<AffiliationId>This Playlist’s affiliations.
categories: Vec<CategoryId>The Playlist’s categories.
additional_resources: Vec<AdditionalResource>Additional resources of this Playlist.
items: Vec<JigId>List of Jig Ids within the Playlist
Trait Implementations§
Source§impl Clone for PlaylistData
impl Clone for PlaylistData
Source§fn clone(&self) -> PlaylistData
fn clone(&self) -> PlaylistData
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 PlaylistData
impl Debug for PlaylistData
Source§impl<'de> Deserialize<'de> for PlaylistData
impl<'de> Deserialize<'de> for PlaylistData
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
Auto Trait Implementations§
impl Freeze for PlaylistData
impl RefUnwindSafe for PlaylistData
impl Send for PlaylistData
impl Sync for PlaylistData
impl Unpin for PlaylistData
impl UnwindSafe for PlaylistData
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