pub struct ResourceData {Show 16 fields
pub draft_or_live: DraftOrLive,
pub display_name: String,
pub cover: Option<LiteModule>,
pub age_ranges: Vec<AgeRangeId>,
pub affiliations: Vec<AffiliationId>,
pub language: String,
pub categories: Vec<CategoryId>,
pub description: String,
pub created_at: DateTime<Utc>,
pub last_edited: Option<DateTime<Utc>>,
pub privacy_level: PrivacyLevel,
pub locked: bool,
pub other_keywords: String,
pub translated_keywords: String,
pub translated_description: HashMap<String, String>,
pub additional_resources: Vec<AdditionalResource>,
}
Expand description
The over-the-wire representation of a Resource’s data. This can either be the live copy or the draft copy.
Fields§
§draft_or_live: DraftOrLive
Whether the Resource data is the live copy or the draft.
display_name: String
The Resource’s name.
cover: Option<LiteModule>
The Resource’s remaining modules.
NOTE: the first module will always exist and will always be of type cover
age_ranges: Vec<AgeRangeId>
This resource’s age ranges.
affiliations: Vec<AffiliationId>
This resource’s affiliations.
language: String
The language the resource uses.
NOTE: in the format en
, eng
, en-US
, eng-US
or eng-USA
. To be replaced with a struct that enforces this.
categories: Vec<CategoryId>
The resource’s categories.
description: String
Description of the resource.
created_at: DateTime<Utc>
When the Resource was first created.
last_edited: Option<DateTime<Utc>>
When the resource was last edited
privacy_level: PrivacyLevel
The privacy level on the Resource.
locked: bool
Lock this resource
other_keywords: String
Other keywords used to searched for resources
translated_keywords: String
translated keywords used to searched for resources
translated_description: HashMap<String, String>
translated descriptions
additional_resources: Vec<AdditionalResource>
Additional resources of this Resource.
Trait Implementations§
Source§impl Clone for ResourceData
impl Clone for ResourceData
Source§fn clone(&self) -> ResourceData
fn clone(&self) -> ResourceData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more