pub struct DeckConfig {
pub id: i64,
pub name: String,
pub max_taken: i64,
pub replayq: bool,
pub autoplay: bool,
pub timer: i64,
pub new: NewCardConfig,
pub rev: ReviewConfig,
pub lapse: LapseConfig,
}Expand description
Configuration for a deck.
This represents the study options for a deck, including settings for new cards, reviews, and lapses.
Fields§
§id: i64The config ID.
name: StringThe config name.
max_taken: i64Maximum reviews per day.
replayq: boolWhether to replay question audio when showing answer.
autoplay: boolWhether this is the autoplay setting.
timer: i64Timer setting.
new: NewCardConfigNew card settings.
rev: ReviewConfigReview settings.
lapse: LapseConfigLapse settings.
Trait Implementations§
Source§impl Clone for DeckConfig
impl Clone for DeckConfig
Source§fn clone(&self) -> DeckConfig
fn clone(&self) -> DeckConfig
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 DeckConfig
impl Debug for DeckConfig
Source§impl<'de> Deserialize<'de> for DeckConfig
impl<'de> Deserialize<'de> for DeckConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeckConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeckConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DeckConfig
impl Serialize for DeckConfig
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 DeckConfig
impl RefUnwindSafe for DeckConfig
impl Send for DeckConfig
impl Sync for DeckConfig
impl Unpin for DeckConfig
impl UnwindSafe for DeckConfig
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