pub struct ClassLevels {
pub class_id: ClassId,
pub level: u64,
pub attrs: Vec<EntityAttribute>,
pub price: CurrencyUnit,
pub ability_levels: Vec<ClassAbilityLevel>,
}Fields§
§class_id: ClassId§level: u64§attrs: Vec<EntityAttribute>§price: CurrencyUnit§ability_levels: Vec<ClassAbilityLevel>Trait Implementations§
Source§impl Clone for ClassLevels
impl Clone for ClassLevels
Source§fn clone(&self) -> ClassLevels
fn clone(&self) -> ClassLevels
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 ClassLevels
impl Debug for ClassLevels
Source§impl Default for ClassLevels
impl Default for ClassLevels
Source§fn default() -> ClassLevels
fn default() -> ClassLevels
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClassLevels
impl<'de> Deserialize<'de> for ClassLevels
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 ClassLevels
impl JsonSchema for ClassLevels
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 ClassLevels
impl PartialEq for ClassLevels
Source§impl Serialize for ClassLevels
impl Serialize for ClassLevels
Source§impl Tsify for ClassLevels
impl Tsify for ClassLevels
const DECL: &'static str = "export interface ClassLevels {\n class_id: ClassId;\n level: number;\n attrs: EntityAttribute[];\n price: CurrencyUnit;\n ability_levels: ClassAbilityLevel[];\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 ClassLevels
impl StructuralPartialEq for ClassLevels
Auto Trait Implementations§
impl Freeze for ClassLevels
impl RefUnwindSafe for ClassLevels
impl Send for ClassLevels
impl Sync for ClassLevels
impl Unpin for ClassLevels
impl UnwindSafe for ClassLevels
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