pub struct NewCardConfig {
pub delays: Vec<f64>,
pub order: i64,
pub initial_factor: i64,
pub separate: bool,
pub ints: Vec<i64>,
pub per_day: i64,
}Expand description
Configuration for new cards.
Fields§
§delays: Vec<f64>Learning steps in minutes.
order: i64Order of new cards (0 = random, 1 = due).
initial_factor: i64Initial ease factor (as integer, e.g., 2500 = 250%).
separate: boolWhether to separate new cards by day.
ints: Vec<i64>Graduating interval in days.
per_day: i64Maximum new cards per day.
Trait Implementations§
Source§impl Clone for NewCardConfig
impl Clone for NewCardConfig
Source§fn clone(&self) -> NewCardConfig
fn clone(&self) -> NewCardConfig
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 NewCardConfig
impl Debug for NewCardConfig
Source§impl<'de> Deserialize<'de> for NewCardConfig
impl<'de> Deserialize<'de> for NewCardConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NewCardConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NewCardConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NewCardConfig
impl Serialize for NewCardConfig
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 NewCardConfig
impl RefUnwindSafe for NewCardConfig
impl Send for NewCardConfig
impl Sync for NewCardConfig
impl Unpin for NewCardConfig
impl UnwindSafe for NewCardConfig
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