pub struct CoreCurrencyKillDrop {
pub chance: f64,
pub amount: PositiveI64,
}Expand description
PLACEHOLDER ECONOMY (plan §4): the core-upgrade currency drops off mobs and nothing else. The real faucet is a separate design pass — when it lands, this whole struct is expected to be replaced by proper drop tables, not re-tuned.
Fields§
§chance: f64§amount: PositiveI64Trait Implementations§
Source§impl Clone for CoreCurrencyKillDrop
impl Clone for CoreCurrencyKillDrop
Source§fn clone(&self) -> CoreCurrencyKillDrop
fn clone(&self) -> CoreCurrencyKillDrop
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 CoreCurrencyKillDrop
impl Debug for CoreCurrencyKillDrop
Source§impl<'de> Deserialize<'de> for CoreCurrencyKillDrop
impl<'de> Deserialize<'de> for CoreCurrencyKillDrop
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 CoreCurrencyKillDrop
impl JsonSchema for CoreCurrencyKillDrop
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 CoreCurrencyKillDrop
impl Serialize for CoreCurrencyKillDrop
Source§impl Tsify for CoreCurrencyKillDrop
impl Tsify for CoreCurrencyKillDrop
const DECL: &'static str = "/**\n * PLACEHOLDER ECONOMY (plan \u{a7}4): the core-upgrade currency drops off mobs and\n * nothing else. The real faucet is a separate design pass \u{2014} when it lands,\n * this whole struct is expected to be replaced by proper drop tables, not\n * re-tuned.\n */\nexport interface CoreCurrencyKillDrop {\n chance: number;\n amount: PositiveI64;\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 CoreCurrencyKillDrop
impl RefUnwindSafe for CoreCurrencyKillDrop
impl Send for CoreCurrencyKillDrop
impl Sync for CoreCurrencyKillDrop
impl Unpin for CoreCurrencyKillDrop
impl UnwindSafe for CoreCurrencyKillDrop
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