pub struct UpgradedAbilityStonesMap(pub HashMap<AbilityStoneId, (i64, i64)>);Expand description
What one UpgradeAllAbilityStones call actually changed: template id ->
(from, to) level. Modelled on UpgradedStonesMap and used the same way —
the client shows its result window from this.
Only stones that actually gained a level appear; one whose bank was too short is simply absent rather than present with an unchanged pair.
Tuple Fields§
§0: HashMap<AbilityStoneId, (i64, i64)>Implementations§
Trait Implementations§
Source§impl Clone for UpgradedAbilityStonesMap
impl Clone for UpgradedAbilityStonesMap
Source§fn clone(&self) -> UpgradedAbilityStonesMap
fn clone(&self) -> UpgradedAbilityStonesMap
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 UpgradedAbilityStonesMap
impl Debug for UpgradedAbilityStonesMap
Source§impl Default for UpgradedAbilityStonesMap
impl Default for UpgradedAbilityStonesMap
Source§fn default() -> UpgradedAbilityStonesMap
fn default() -> UpgradedAbilityStonesMap
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradedAbilityStonesMap
impl<'de> Deserialize<'de> for UpgradedAbilityStonesMap
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 UpgradedAbilityStonesMap
impl JsonSchema for UpgradedAbilityStonesMap
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 UpgradedAbilityStonesMap
impl PartialEq for UpgradedAbilityStonesMap
Source§impl Serialize for UpgradedAbilityStonesMap
impl Serialize for UpgradedAbilityStonesMap
Source§impl Tsify for UpgradedAbilityStonesMap
impl Tsify for UpgradedAbilityStonesMap
const DECL: &'static str = "/**\n * What one `UpgradeAllAbilityStones` call actually changed: template id ->\n * (from, to) level. Modelled on `UpgradedStonesMap` and used the same way \u{2014}\n * the client shows its result window from this.\n *\n * Only stones that actually gained a level appear; one whose bank was too\n * short is simply absent rather than present with an unchanged pair.\n */\nexport type UpgradedAbilityStonesMap = Record<AbilityStoneId, [number, number]>;"
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 UpgradedAbilityStonesMap
impl StructuralPartialEq for UpgradedAbilityStonesMap
Auto Trait Implementations§
impl Freeze for UpgradedAbilityStonesMap
impl RefUnwindSafe for UpgradedAbilityStonesMap
impl Send for UpgradedAbilityStonesMap
impl Sync for UpgradedAbilityStonesMap
impl Unpin for UpgradedAbilityStonesMap
impl UnwindSafe for UpgradedAbilityStonesMap
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