pub struct NudgeConfig {
pub enabled: bool,
pub daily_cap: u32,
pub snooze_days: u32,
pub threshold: usize,
}Fields§
§enabled: boolMaster switch. Default on — Phase 2 companion surface is live.
daily_cap: u32§snooze_days: u32§threshold: usizeTrait Implementations§
Source§impl Clone for NudgeConfig
impl Clone for NudgeConfig
Source§fn clone(&self) -> NudgeConfig
fn clone(&self) -> NudgeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NudgeConfig
impl Debug for NudgeConfig
Source§impl Default for NudgeConfig
impl Default for NudgeConfig
Source§impl<'de> Deserialize<'de> for NudgeConfig
impl<'de> Deserialize<'de> for NudgeConfig
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
Auto Trait Implementations§
impl Freeze for NudgeConfig
impl RefUnwindSafe for NudgeConfig
impl Send for NudgeConfig
impl Sync for NudgeConfig
impl Unpin for NudgeConfig
impl UnsafeUnpin for NudgeConfig
impl UnwindSafe for NudgeConfig
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