pub struct QuestTemplate {Show 15 fields
pub id: QuestId,
pub title: I18nString,
pub description: I18nString,
pub progress_script: String,
pub progress_target: i64,
pub quest_group_type: QuestGroupType,
pub bundle_id: Option<BundleId>,
pub progression_points: u64,
pub starting: bool,
pub next_quest_ids: Vec<QuestId>,
pub events_subscribe: Vec<String>,
pub additional_quests_script: Option<String>,
pub progress_if_inactive: bool,
pub screen_reference: Option<ScreenType>,
pub code: Option<String>,
}Fields§
§id: QuestId§title: I18nString§description: I18nString§progress_script: String§progress_target: i64§quest_group_type: QuestGroupType§bundle_id: Option<BundleId>§progression_points: u64§starting: bool§next_quest_ids: Vec<QuestId>§events_subscribe: Vec<String>§additional_quests_script: Option<String>§progress_if_inactive: bool§screen_reference: Option<ScreenType>§code: Option<String>Trait Implementations§
Source§impl Clone for QuestTemplate
impl Clone for QuestTemplate
Source§fn clone(&self) -> QuestTemplate
fn clone(&self) -> QuestTemplate
Returns a copy 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 CustomType for QuestTemplate
impl CustomType for QuestTemplate
Source§fn build(builder: TypeBuilder<'_, Self>)
fn build(builder: TypeBuilder<'_, Self>)
Builds the custom type for use with the [
Engine]. Read moreSource§impl Debug for QuestTemplate
impl Debug for QuestTemplate
Source§impl<'de> Deserialize<'de> for QuestTemplate
impl<'de> Deserialize<'de> for QuestTemplate
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 Hash for QuestTemplate
impl Hash for QuestTemplate
Source§impl JsonSchema for QuestTemplate
impl JsonSchema for QuestTemplate
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for QuestTemplate
impl PartialEq for QuestTemplate
Source§impl Serialize for QuestTemplate
impl Serialize for QuestTemplate
Source§impl Tsify for QuestTemplate
impl Tsify for QuestTemplate
const DECL: &'static str = "export interface QuestTemplate {\n id: QuestId;\n title: I18nString;\n description: I18nString;\n progress_script: string;\n progress_target: number;\n quest_group_type: QuestGroupType;\n bundle_id: BundleId | null;\n progression_points: number;\n starting: boolean;\n next_quest_ids: QuestId[];\n events_subscribe: string[];\n additional_quests_script: string | null;\n progress_if_inactive: boolean;\n screen_reference: ScreenType | null;\n code: string | null;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Eq for QuestTemplate
impl StructuralPartialEq for QuestTemplate
Auto Trait Implementations§
impl Freeze for QuestTemplate
impl RefUnwindSafe for QuestTemplate
impl Send for QuestTemplate
impl Sync for QuestTemplate
impl Unpin for QuestTemplate
impl UnwindSafe for QuestTemplate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more