pub struct LapseConfig {
pub delays: Vec<f64>,
pub leech_fails: i64,
pub leech_action: i64,
pub min_int: i64,
pub mult: f64,
}Expand description
Configuration for lapses.
Fields§
§delays: Vec<f64>Relearning steps in minutes.
leech_fails: i64Leech threshold.
leech_action: i64Leech action (0 = suspend, 1 = tag only).
min_int: i64Minimum interval after lapse.
mult: f64New interval multiplier after lapse.
Trait Implementations§
Source§impl Clone for LapseConfig
impl Clone for LapseConfig
Source§fn clone(&self) -> LapseConfig
fn clone(&self) -> LapseConfig
Returns a duplicate 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 LapseConfig
impl Debug for LapseConfig
Source§impl<'de> Deserialize<'de> for LapseConfig
impl<'de> Deserialize<'de> for LapseConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LapseConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LapseConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LapseConfig
impl Serialize for LapseConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LapseConfig
impl RefUnwindSafe for LapseConfig
impl Send for LapseConfig
impl Sync for LapseConfig
impl Unpin for LapseConfig
impl UnwindSafe for LapseConfig
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