pub struct PetCasesSettingsByLevel {
pub level: i64,
pub opens_to_upgrade: i64,
pub is_boundary_level: bool,
pub rarity_weights: Vec<PetCaseRarityWeight>,
pub checkpoints: Vec<PetCaseCheckpointReward>,
pub allowed_wishlist_rarity_ids: Vec<PetRarityId>,
pub big_roll_currency_rewards: Vec<CurrencyUnit>,
pub big_roll_shards: Vec<PetBigRollShard>,
}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<PetCaseRarityWeight>§checkpoints: Vec<PetCaseCheckpointReward>Чекпоинты внутри уровня с автоклеймом наград (порог задаётся в крутках).
allowed_wishlist_rarity_ids: Vec<PetRarityId>Допустимые на этом уровне редкости для вишлиста.
big_roll_currency_rewards: Vec<CurrencyUnit>Дополнительные валютные награды при большой крутке (x11) на этом уровне.
big_roll_shards: Vec<PetBigRollShard>Распределение шардов по минимальным редкостям для большой крутки. Сумма count должна равняться total_drops (cost + bonus_drops).
Trait Implementations§
Source§impl Clone for PetCasesSettingsByLevel
impl Clone for PetCasesSettingsByLevel
Source§fn clone(&self) -> PetCasesSettingsByLevel
fn clone(&self) -> PetCasesSettingsByLevel
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 PetCasesSettingsByLevel
impl Debug for PetCasesSettingsByLevel
Source§impl<'de> Deserialize<'de> for PetCasesSettingsByLevel
impl<'de> Deserialize<'de> for PetCasesSettingsByLevel
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 PetCasesSettingsByLevel
impl JsonSchema for PetCasesSettingsByLevel
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 PetCasesSettingsByLevel
impl Serialize for PetCasesSettingsByLevel
Source§impl Tsify for PetCasesSettingsByLevel
impl Tsify for PetCasesSettingsByLevel
const DECL: &'static str = "export interface PetCasesSettingsByLevel {\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: PetCaseRarityWeight[];\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: PetCaseCheckpointReward[];\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: PetRarityId[];\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: PetBigRollShard[];\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 PetCasesSettingsByLevel
impl RefUnwindSafe for PetCasesSettingsByLevel
impl Send for PetCasesSettingsByLevel
impl Sync for PetCasesSettingsByLevel
impl Unpin for PetCasesSettingsByLevel
impl UnwindSafe for PetCasesSettingsByLevel
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