pub struct CardInfo {Show 17 fields
pub card_id: i64,
pub note_id: i64,
pub deck_id: i64,
pub deck_name: String,
pub model_name: String,
pub question: String,
pub answer: String,
pub fields: HashMap<String, NoteField>,
pub card_type: i32,
pub queue: i32,
pub due: i64,
pub interval: i64,
pub ease_factor: i64,
pub reps: i64,
pub lapses: i64,
pub left: i64,
pub mod_time: i64,
}Expand description
Information about a card.
Fields§
§card_id: i64The card ID.
note_id: i64The note ID this card was generated from.
deck_id: i64The deck ID.
deck_name: StringThe deck this card belongs to.
model_name: StringThe note type (model) name.
question: StringThe card’s question side (HTML).
answer: StringThe card’s answer side (HTML).
fields: HashMap<String, NoteField>Field values from the note.
card_type: i32The card type (0 = new, 1 = learning, 2 = review, 3 = relearning).
queue: i32The queue the card is in (-1 = suspended, -2 = sibling buried, -3 = manually buried, 0 = new, 1 = learning, 2 = review, 3 = day learn, 4 = preview).
due: i64Due position/date (meaning depends on card type).
interval: i64Current interval in days.
ease_factor: i64Ease factor (as integer, e.g., 2500 = 250%).
reps: i64Number of reviews.
lapses: i64Number of lapses.
left: i64Number of reviews left today.
mod_time: i64Last modification timestamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardInfo
impl<'de> Deserialize<'de> for CardInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CardInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CardInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CardInfo
impl Serialize for CardInfo
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 CardInfo
impl RefUnwindSafe for CardInfo
impl Send for CardInfo
impl Sync for CardInfo
impl Unpin for CardInfo
impl UnwindSafe for CardInfo
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