pub struct CollectionPowerFamily {
pub k: f64,
}Expand description
One catalog’s share of the Collection Power budget.
k is the bonus paid per template per unit of weight at FULL progress, so a
family’s full-catalog bonus is k × Σ weight. It is an authored constant,
deliberately not a budget divided by the live catalog size: new content must
have its own budget signed off rather than silently diluting — or silently
inflating — what the current catalog already pays. A template added without
a re-authored k simply extends the family past its signed budget, which is
the visible failure the collection_power tests catch.
Fields§
§k: f64Trait Implementations§
Source§impl Clone for CollectionPowerFamily
impl Clone for CollectionPowerFamily
Source§fn clone(&self) -> CollectionPowerFamily
fn clone(&self) -> CollectionPowerFamily
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 CollectionPowerFamily
impl Debug for CollectionPowerFamily
Source§impl<'de> Deserialize<'de> for CollectionPowerFamily
impl<'de> Deserialize<'de> for CollectionPowerFamily
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 CollectionPowerFamily
impl JsonSchema for CollectionPowerFamily
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 CollectionPowerFamily
impl Serialize for CollectionPowerFamily
Source§impl Tsify for CollectionPowerFamily
impl Tsify for CollectionPowerFamily
const DECL: &'static str = "/**\n * One catalog\\\'s share of the Collection Power budget.\n *\n * `k` is the bonus paid per template per unit of weight at FULL progress, so a\n * family\\\'s full-catalog bonus is `k \u{d7} \u{3a3} weight`. It is an authored constant,\n * deliberately not a budget divided by the live catalog size: new content must\n * have its own budget signed off rather than silently diluting \u{2014} or silently\n * inflating \u{2014} what the current catalog already pays. A template added without\n * a re-authored `k` simply extends the family past its signed budget, which is\n * the visible failure the `collection_power` tests catch.\n */\nexport interface CollectionPowerFamily {\n k: 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 CollectionPowerFamily
Auto Trait Implementations§
impl Freeze for CollectionPowerFamily
impl RefUnwindSafe for CollectionPowerFamily
impl Send for CollectionPowerFamily
impl Sync for CollectionPowerFamily
impl Unpin for CollectionPowerFamily
impl UnwindSafe for CollectionPowerFamily
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