pub struct MasteryShardBand {
pub up_to_clear: i64,
pub shards: i64,
}Expand description
One band of the Mastery Shard schedule (BAL-035): every campaign-boss FIRST
clear up to up_to_clear pays shards.
Bands rather than a formula because the schedule is authored against exact
cumulative totals — 100 Shards by the tenth clear, 4,000 by the
hundredth, 16,000 by state ch300 — and those totals are what the Mastery
price ladder was priced against.
Fields§
§up_to_clear: i64§shards: i64Trait Implementations§
Source§impl Clone for MasteryShardBand
impl Clone for MasteryShardBand
Source§fn clone(&self) -> MasteryShardBand
fn clone(&self) -> MasteryShardBand
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 MasteryShardBand
impl Debug for MasteryShardBand
Source§impl<'de> Deserialize<'de> for MasteryShardBand
impl<'de> Deserialize<'de> for MasteryShardBand
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 MasteryShardBand
impl JsonSchema for MasteryShardBand
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 Serialize for MasteryShardBand
impl Serialize for MasteryShardBand
Source§impl Tsify for MasteryShardBand
impl Tsify for MasteryShardBand
const DECL: &'static str = "/**\n * One band of the Mastery Shard schedule (BAL-035): every campaign-boss FIRST\n * clear up to `up_to_clear` pays `shards`.\n *\n * Bands rather than a formula because the schedule is authored against exact\n * cumulative totals \u{2014} `100` Shards by the tenth clear, `4,000` by the\n * hundredth, `16,000` by state ch300 \u{2014} and those totals are what the Mastery\n * price ladder was priced against.\n */\nexport interface MasteryShardBand {\n up_to_clear: number;\n shards: number;\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 Copy for MasteryShardBand
Auto Trait Implementations§
impl Freeze for MasteryShardBand
impl RefUnwindSafe for MasteryShardBand
impl Send for MasteryShardBand
impl Sync for MasteryShardBand
impl Unpin for MasteryShardBand
impl UnwindSafe for MasteryShardBand
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