pub struct StatueState {
pub level: i64,
pub experience: i64,
pub active_set_index: u8,
pub sets: Vec<StatueSet>,
}Expand description
Полное состояние статуи игрока
Fields§
§level: i64§experience: i64§active_set_index: u8Индекс активного сета (0–2)
sets: Vec<StatueSet>Сеты статуи (1–3 в зависимости от уровня)
Trait Implementations§
Source§impl Clone for StatueState
impl Clone for StatueState
Source§fn clone(&self) -> StatueState
fn clone(&self) -> StatueState
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 StatueState
impl Debug for StatueState
Source§impl Default for StatueState
impl Default for StatueState
Source§impl<'de> Deserialize<'de> for StatueState
impl<'de> Deserialize<'de> for StatueState
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 StatueState
impl JsonSchema for StatueState
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 StatueState
impl PartialEq for StatueState
Source§impl Serialize for StatueState
impl Serialize for StatueState
Source§impl Tsify for StatueState
impl Tsify for StatueState
const DECL: &'static str = "/**\n * \u{41f}\u{43e}\u{43b}\u{43d}\u{43e}\u{435} \u{441}\u{43e}\u{441}\u{442}\u{43e}\u{44f}\u{43d}\u{438}\u{435} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438} \u{438}\u{433}\u{440}\u{43e}\u{43a}\u{430}\n */\nexport interface StatueState {\n level: number;\n experience: number;\n /**\n * \u{418}\u{43d}\u{434}\u{435}\u{43a}\u{441} \u{430}\u{43a}\u{442}\u{438}\u{432}\u{43d}\u{43e}\u{433}\u{43e} \u{441}\u{435}\u{442}\u{430} (0\u{2013}2)\n */\n active_set_index: number;\n /**\n * \u{421}\u{435}\u{442}\u{44b} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438} (1\u{2013}3 \u{432} \u{437}\u{430}\u{432}\u{438}\u{441}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{438} \u{43e}\u{442} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{44f})\n */\n sets: StatueSet[];\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 StatueState
impl StructuralPartialEq for StatueState
Auto Trait Implementations§
impl Freeze for StatueState
impl RefUnwindSafe for StatueState
impl Send for StatueState
impl Sync for StatueState
impl Unpin for StatueState
impl UnwindSafe for StatueState
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