pub struct ProactiveConfig {
pub enabled: bool,
pub learning_until: Option<DateTime<Utc>>,
pub quiet_hours: Option<QuietHours>,
pub active_hours: Option<ActiveHours>,
pub daily_cap: u8,
pub channels: Vec<String>,
pub paused_until: Option<DateTime<Utc>>,
}Fields§
§enabled: bool§learning_until: Option<DateTime<Utc>>1.1 reserves the field; 1.2 will write now + 7d at rhythm-enable.
quiet_hours: Option<QuietHours>§active_hours: Option<ActiveHours>§daily_cap: u8§channels: Vec<String>§paused_until: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for ProactiveConfig
impl Clone for ProactiveConfig
Source§fn clone(&self) -> ProactiveConfig
fn clone(&self) -> ProactiveConfig
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 ProactiveConfig
impl Debug for ProactiveConfig
Source§impl Default for ProactiveConfig
impl Default for ProactiveConfig
Source§impl<'de> Deserialize<'de> for ProactiveConfig
impl<'de> Deserialize<'de> for ProactiveConfig
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 PartialEq for ProactiveConfig
impl PartialEq for ProactiveConfig
Source§fn eq(&self, other: &ProactiveConfig) -> bool
fn eq(&self, other: &ProactiveConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProactiveConfig
impl Serialize for ProactiveConfig
impl StructuralPartialEq for ProactiveConfig
Auto Trait Implementations§
impl Freeze for ProactiveConfig
impl RefUnwindSafe for ProactiveConfig
impl Send for ProactiveConfig
impl Sync for ProactiveConfig
impl Unpin for ProactiveConfig
impl UnsafeUnpin for ProactiveConfig
impl UnwindSafe for ProactiveConfig
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