pub struct Class {Show 19 fields
pub id: ClassId,
pub name: I18nString,
pub description: I18nString,
pub icon_path: String,
pub background_image_path: String,
pub character_asset: String,
pub cast_time: u64,
pub spine: String,
pub basic_abilities: Vec<AbilityId>,
pub class_abilities: Vec<AbilityId>,
pub starter_bundle_id: Option<BundleId>,
pub attributes: Vec<ClassAttribute>,
pub ability_rarity_id: AbilityRarityId,
pub tier: ClassTier,
pub demo_skins: Vec<SkinId>,
pub weapon_type: I18nString,
pub main_attribute: AttributeId,
pub main_attribute_optimal_value: u64,
pub default_weapon_skin_id: SkinId,
}Fields§
§id: ClassId§name: I18nString§description: I18nString§icon_path: String§background_image_path: String§character_asset: String§cast_time: u64§spine: String§basic_abilities: Vec<AbilityId>§class_abilities: Vec<AbilityId>§starter_bundle_id: Option<BundleId>§attributes: Vec<ClassAttribute>§ability_rarity_id: AbilityRarityId§tier: ClassTier§demo_skins: Vec<SkinId>§weapon_type: I18nString§main_attribute: AttributeId§main_attribute_optimal_value: u64§default_weapon_skin_id: SkinIdTrait Implementations§
Source§impl<'de> Deserialize<'de> for Class
impl<'de> Deserialize<'de> for Class
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 JsonSchema for Class
impl JsonSchema for Class
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 Tsify for Class
impl Tsify for Class
const DECL: &'static str = "export interface Class {\n id: ClassId;\n name: I18nString;\n description: I18nString;\n icon_path: string;\n background_image_path: string;\n character_asset: string;\n cast_time: number;\n spine: string;\n basic_abilities: AbilityId[];\n class_abilities: AbilityId[];\n starter_bundle_id: BundleId | null;\n attributes: ClassAttribute[];\n ability_rarity_id: AbilityRarityId;\n tier: ClassTier;\n demo_skins: SkinId[];\n weapon_type: I18nString;\n main_attribute: AttributeId;\n main_attribute_optimal_value: number;\n default_weapon_skin_id: SkinId;\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 Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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