pub struct AbilityCasesSettingsByLevel {
pub level: i64,
pub opens_to_upgrade: i64,
pub is_boundary_level: bool,
pub rarity_weights: Vec<AbilityCaseRarityWeight>,
pub checkpoints: Vec<AbilityCaseCheckpointReward>,
pub allowed_wishlist_rarity_ids: Vec<AbilityRarityId>,
pub evolve_rules: Vec<AbilityCaseEvolveRule>,
pub big_roll_currency_rewards: Vec<CurrencyUnit>,
pub big_roll_shards: Vec<BigRollShard>,
}Fields§
§level: i64§opens_to_upgrade: i64§is_boundary_level: boolPhantom level that only defines the end boundary for the previous (last real) level. Not a playable level — players are never assigned to it.
rarity_weights: Vec<AbilityCaseRarityWeight>§checkpoints: Vec<AbilityCaseCheckpointReward>Чекпоинты внутри уровня с автоклеймом наград (порог задаётся в крутках).
allowed_wishlist_rarity_ids: Vec<AbilityRarityId>Допустимые на этом уровне редкости для вишлиста.
evolve_rules: Vec<AbilityCaseEvolveRule>Правила evolve, действующие на этом уровне.
big_roll_currency_rewards: Vec<CurrencyUnit>Дополнительные валютные награды при большой крутке (x11) на этом уровне.
big_roll_shards: Vec<BigRollShard>Распределение шардов по минимальным редкостям для большой крутки. Сумма count должна равняться total_drops (cost + bonus_drops).
Trait Implementations§
Source§impl Clone for AbilityCasesSettingsByLevel
impl Clone for AbilityCasesSettingsByLevel
Source§fn clone(&self) -> AbilityCasesSettingsByLevel
fn clone(&self) -> AbilityCasesSettingsByLevel
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 AbilityCasesSettingsByLevel
impl Debug for AbilityCasesSettingsByLevel
Source§impl<'de> Deserialize<'de> for AbilityCasesSettingsByLevel
impl<'de> Deserialize<'de> for AbilityCasesSettingsByLevel
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 AbilityCasesSettingsByLevel
impl JsonSchema for AbilityCasesSettingsByLevel
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 AbilityCasesSettingsByLevel
impl Tsify for AbilityCasesSettingsByLevel
const DECL: &'static str = "export interface AbilityCasesSettingsByLevel {\n level: number;\n opens_to_upgrade: number;\n /**\n * Phantom level that only defines the end boundary for the previous (last real) level.\n * Not a playable level \u{2014} players are never assigned to it.\n */\n is_boundary_level: boolean;\n rarity_weights: AbilityCaseRarityWeight[];\n /**\n * \u{427}\u{435}\u{43a}\u{43f}\u{43e}\u{438}\u{43d}\u{442}\u{44b} \u{432}\u{43d}\u{443}\u{442}\u{440}\u{438} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{44f} \u{441} \u{430}\u{432}\u{442}\u{43e}\u{43a}\u{43b}\u{435}\u{439}\u{43c}\u{43e}\u{43c} \u{43d}\u{430}\u{433}\u{440}\u{430}\u{434} (\u{43f}\u{43e}\u{440}\u{43e}\u{433} \u{437}\u{430}\u{434}\u{430}\u{451}\u{442}\u{441}\u{44f} \u{432} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{430}\u{445}).\n */\n checkpoints: AbilityCaseCheckpointReward[];\n /**\n * \u{414}\u{43e}\u{43f}\u{443}\u{441}\u{442}\u{438}\u{43c}\u{44b}\u{435} \u{43d}\u{430} \u{44d}\u{442}\u{43e}\u{43c} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{435} \u{440}\u{435}\u{434}\u{43a}\u{43e}\u{441}\u{442}\u{438} \u{434}\u{43b}\u{44f} \u{432}\u{438}\u{448}\u{43b}\u{438}\u{441}\u{442}\u{430}.\n */\n allowed_wishlist_rarity_ids: AbilityRarityId[];\n /**\n * \u{41f}\u{440}\u{430}\u{432}\u{438}\u{43b}\u{430} evolve, \u{434}\u{435}\u{439}\u{441}\u{442}\u{432}\u{443}\u{44e}\u{449}\u{438}\u{435} \u{43d}\u{430} \u{44d}\u{442}\u{43e}\u{43c} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{435}.\n */\n evolve_rules: AbilityCaseEvolveRule[];\n /**\n * \u{414}\u{43e}\u{43f}\u{43e}\u{43b}\u{43d}\u{438}\u{442}\u{435}\u{43b}\u{44c}\u{43d}\u{44b}\u{435} \u{432}\u{430}\u{43b}\u{44e}\u{442}\u{43d}\u{44b}\u{435} \u{43d}\u{430}\u{433}\u{440}\u{430}\u{434}\u{44b} \u{43f}\u{440}\u{438} \u{431}\u{43e}\u{43b}\u{44c}\u{448}\u{43e}\u{439} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{435} (x11) \u{43d}\u{430} \u{44d}\u{442}\u{43e}\u{43c} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{435}.\n */\n big_roll_currency_rewards: CurrencyUnit[];\n /**\n * \u{420}\u{430}\u{441}\u{43f}\u{440}\u{435}\u{434}\u{435}\u{43b}\u{435}\u{43d}\u{438}\u{435} \u{448}\u{430}\u{440}\u{434}\u{43e}\u{432} \u{43f}\u{43e} \u{43c}\u{438}\u{43d}\u{438}\u{43c}\u{430}\u{43b}\u{44c}\u{43d}\u{44b}\u{43c} \u{440}\u{435}\u{434}\u{43a}\u{43e}\u{441}\u{442}\u{44f}\u{43c} \u{434}\u{43b}\u{44f} \u{431}\u{43e}\u{43b}\u{44c}\u{448}\u{43e}\u{439} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438}.\n * \u{421}\u{443}\u{43c}\u{43c}\u{430} count \u{434}\u{43e}\u{43b}\u{436}\u{43d}\u{430} \u{440}\u{430}\u{432}\u{43d}\u{44f}\u{442}\u{44c}\u{441}\u{44f} total_drops (cost + bonus_drops).\n */\n big_roll_shards: BigRollShard[];\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>
Auto Trait Implementations§
impl Freeze for AbilityCasesSettingsByLevel
impl RefUnwindSafe for AbilityCasesSettingsByLevel
impl Send for AbilityCasesSettingsByLevel
impl Sync for AbilityCasesSettingsByLevel
impl Unpin for AbilityCasesSettingsByLevel
impl UnwindSafe for AbilityCasesSettingsByLevel
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