pub struct PetTemplate {
pub id: PetId,
pub name: I18nString,
pub icon_path: String,
pub spine_path: String,
pub rarity_id: PetRarityId,
pub stats: Vec<PetSecondaryStat>,
pub is_gacha_pet: bool,
pub real_facet: PetFacet,
pub fantasy_facet: PetFacet,
}Fields§
§id: PetId§name: I18nString§icon_path: String§spine_path: String§rarity_id: PetRarityId§stats: Vec<PetSecondaryStat>§is_gacha_pet: bool§real_facet: PetFacetReal half of the pet’s fixed facet pair. Part of the pet’s identity: it is not rolled on drop and cannot be re-socketed.
fantasy_facet: PetFacetFantasy half of the same pair.
Trait Implementations§
Source§impl Clone for PetTemplate
impl Clone for PetTemplate
Source§fn clone(&self) -> PetTemplate
fn clone(&self) -> PetTemplate
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 Debug for PetTemplate
impl Debug for PetTemplate
Source§impl Default for PetTemplate
impl Default for PetTemplate
Source§fn default() -> PetTemplate
fn default() -> PetTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PetTemplate
impl<'de> Deserialize<'de> for PetTemplate
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 FromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
impl FromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
Source§impl JsonSchema for PetTemplate
impl JsonSchema for PetTemplate
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 OptionFromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
Source§impl PartialEq for PetTemplate
impl PartialEq for PetTemplate
Source§impl RefFromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<PetTemplate>
type Anchor = SelfOwner<PetTemplate>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for PetTemplate
impl Serialize for PetTemplate
Source§impl Tsify for PetTemplate
impl Tsify for PetTemplate
const DECL: &'static str = "export interface PetTemplate {\n id: PetId;\n name: I18nString;\n icon_path: string;\n spine_path: string;\n rarity_id: PetRarityId;\n stats: PetSecondaryStat[];\n is_gacha_pet: boolean;\n /**\n * Real half of the pet\\\'s fixed facet pair. Part of the pet\\\'s identity: it\n * is not rolled on drop and cannot be re-socketed.\n */\n real_facet: PetFacet;\n /**\n * Fantasy half of the same pair.\n */\n fantasy_facet: PetFacet;\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>
Source§impl VectorFromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for PetTemplatewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl WasmDescribeVector for PetTemplate
impl WasmDescribeVector for PetTemplate
impl Eq for PetTemplate
impl StructuralPartialEq for PetTemplate
Auto Trait Implementations§
impl Freeze for PetTemplate
impl RefUnwindSafe for PetTemplate
impl Send for PetTemplate
impl Sync for PetTemplate
impl Unpin for PetTemplate
impl UnwindSafe for PetTemplate
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