pub struct Deck {
pub name: String,
pub card_paths: Vec<String>,
pub interval_coefficients: IntervalCoefficients,
pub factor_mastered_threshold: Option<f64>,
pub interval_mastered_threshold: Option<f64>,
pub factor_forgotten_threshold: Option<f64>,
}Fields§
§name: String§card_paths: Vec<String>§interval_coefficients: IntervalCoefficients§factor_mastered_threshold: Option<f64>Override for the global factor threshold above which a card is “mastered”.
interval_mastered_threshold: Option<f64>Override for the global interval threshold (days) above which a card is “mastered”.
factor_forgotten_threshold: Option<f64>Override for the global factor threshold below which a card is “forgotten”.
Implementations§
Source§impl Deck
impl Deck
pub fn new( name: &str, card_paths: Vec<&str>, interval_coefficients: IntervalCoefficients, ) -> Self
pub fn with_interval_coefficients( self, interval_coefficients: IntervalCoefficients, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Deck
impl<'de> Deserialize<'de> for Deck
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 PartialOrd for Deck
impl PartialOrd for Deck
impl StructuralPartialEq for Deck
Auto Trait Implementations§
impl Freeze for Deck
impl RefUnwindSafe for Deck
impl Send for Deck
impl Sync for Deck
impl Unpin for Deck
impl UnsafeUnpin for Deck
impl UnwindSafe for Deck
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