pub struct JigCreateRequest {
pub display_name: String,
pub age_ranges: Vec<AgeRangeId>,
pub affiliations: Vec<AffiliationId>,
pub language: String,
pub categories: Vec<CategoryId>,
pub description: String,
pub default_player_settings: JigPlayerSettings,
}Expand description
Request to create a new JIG.
This creates the draft and live JigData copies with the requested info.
Fields§
§display_name: StringThe JIG’s name.
age_ranges: Vec<AgeRangeId>This JIG’s age ranges.
affiliations: Vec<AffiliationId>This jig’s affiliations.
language: StringThe language the jig 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 jig’s categories.
description: StringDescription of the jig. Defaults to empty string.
default_player_settings: JigPlayerSettingsDefault player settings for this jig.
Trait Implementations§
Source§impl Debug for JigCreateRequest
impl Debug for JigCreateRequest
Source§impl Default for JigCreateRequest
impl Default for JigCreateRequest
Source§fn default() -> JigCreateRequest
fn default() -> JigCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JigCreateRequest
impl<'de> Deserialize<'de> for JigCreateRequest
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 JigCreateRequest
impl RefUnwindSafe for JigCreateRequest
impl Send for JigCreateRequest
impl Sync for JigCreateRequest
impl Unpin for JigCreateRequest
impl UnwindSafe for JigCreateRequest
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