pub struct Gatings {
pub navbar_navigation: NavBarNavigation,
pub sidebar_navigation: SideBarNavigation,
pub autochest: AutoChestGatings,
pub afk_rewards_button_unlock_chapter: i64,
pub party_unlock_chapter: i64,
pub shop_button_unlock_chapter: i64,
pub daily_boost_button_unlock_chapter: i64,
pub customization_screen_unlock_chapter: i64,
}Fields§
§autochest: AutoChestGatings§party_unlock_chapter: i64§customization_screen_unlock_chapter: i64Implementations§
Source§impl Gatings
impl Gatings
Sourcepub fn feature_unlock_thresholds(&self) -> Vec<(&'static str, i64)>
pub fn feature_unlock_thresholds(&self) -> Vec<(&'static str, i64)>
Flat (analytics_name, unlock_chapter) list backing the
feature_unlock_snapshot analytics event emitted in
monolith::ws::connection::complete_auth.
The names are a curated, stable analytics contract (downstream
queries MIN(timestamp) PER (character_id, feature) on them), so
they intentionally differ from the raw field names.
This destructures every field of Gatings and its nested structs
without a .. rest pattern on purpose: adding a new gated
field anywhere is then a compile error here until the author
decides whether it belongs in the snapshot. That is the
build-time signal the previous open-coded array lacked. Fields
that are deliberately not emitted are bound to _ with a reason.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gatings
impl<'de> Deserialize<'de> for Gatings
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 Gatings
impl JsonSchema for Gatings
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 Gatings
impl Tsify for Gatings
const DECL: &'static str = "export interface Gatings {\n navbar_navigation: NavBarNavigation;\n sidebar_navigation: SideBarNavigation;\n autochest: AutoChestGatings;\n afk_rewards_button_unlock_chapter: number;\n party_unlock_chapter: number;\n shop_button_unlock_chapter: number;\n daily_boost_button_unlock_chapter: number;\n customization_screen_unlock_chapter: 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 Eq for Gatings
impl StructuralPartialEq for Gatings
Auto Trait Implementations§
impl Freeze for Gatings
impl RefUnwindSafe for Gatings
impl Send for Gatings
impl Sync for Gatings
impl Unpin for Gatings
impl UnwindSafe for Gatings
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