pub struct LocalNotificationsSettings {
pub enabled: bool,
pub win_back: Vec<WinBackNotification>,
pub afk_rewards_capped: LocalNotificationText,
pub item_case_upgrade_finished: LocalNotificationText,
pub talent_upgrade_finished: LocalNotificationText,
pub daily_reset: LocalNotificationText,
pub boost_expiring: LocalNotificationText,
pub boost_expiring_lead_minutes: NonZeroU64,
pub quiet_hours_start: u8,
pub quiet_hours_end: u8,
}Fields§
§enabled: bool§win_back: Vec<WinBackNotification>§afk_rewards_capped: LocalNotificationText§item_case_upgrade_finished: LocalNotificationText§talent_upgrade_finished: LocalNotificationText§daily_reset: LocalNotificationTextThe day boundary is UTC midnight — see AdUsageData::should_reset,
which compares dates, not elapsed time.
boost_expiring: LocalNotificationText§boost_expiring_lead_minutes: NonZeroU64Only the soonest-expiring buff is announced; warning about each one separately would stack several notifications on a player who bought a bundle of boosts.
quiet_hours_start: u8Local hour on the device, not server time. A notification landing inside
the window is pushed forward to quiet_hours_end.
quiet_hours_end: u8Trait Implementations§
Source§impl Clone for LocalNotificationsSettings
impl Clone for LocalNotificationsSettings
Source§fn clone(&self) -> LocalNotificationsSettings
fn clone(&self) -> LocalNotificationsSettings
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 LocalNotificationsSettings
impl Debug for LocalNotificationsSettings
Source§impl<'de> Deserialize<'de> for LocalNotificationsSettings
impl<'de> Deserialize<'de> for LocalNotificationsSettings
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 LocalNotificationsSettings
impl JsonSchema for LocalNotificationsSettings
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 LocalNotificationsSettings
impl Tsify for LocalNotificationsSettings
const DECL: &'static str = "export interface LocalNotificationsSettings {\n enabled: boolean;\n win_back: WinBackNotification[];\n afk_rewards_capped: LocalNotificationText;\n item_case_upgrade_finished: LocalNotificationText;\n talent_upgrade_finished: LocalNotificationText;\n /**\n * The day boundary is UTC midnight \u{2014} see `AdUsageData::should_reset`,\n * which compares dates, not elapsed time.\n */\n daily_reset: LocalNotificationText;\n boost_expiring: LocalNotificationText;\n /**\n * Only the soonest-expiring buff is announced; warning about each one\n * separately would stack several notifications on a player who bought a\n * bundle of boosts.\n */\n boost_expiring_lead_minutes: NonZeroU64;\n /**\n * Local hour on the device, not server time. A notification landing inside\n * the window is pushed forward to `quiet_hours_end`.\n */\n quiet_hours_start: number;\n quiet_hours_end: 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>
Auto Trait Implementations§
impl Freeze for LocalNotificationsSettings
impl RefUnwindSafe for LocalNotificationsSettings
impl Send for LocalNotificationsSettings
impl Sync for LocalNotificationsSettings
impl Unpin for LocalNotificationsSettings
impl UnwindSafe for LocalNotificationsSettings
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