pub struct Card {
    pub inner: CardInner,
    pub path: PathBuf,
    pub score: usize,
    pub due_date: Option<DateTime<Utc>>,
}Expand description
A struct representing the card as a whole.
This includes the card details, as well as its local score, due date, and the path to its parent deck.
Fields§
§inner: CardInnerThe content of the card
path: PathBufThe path to the deck that the card belongs to
score: usizeThe score of a card
due_date: Option<DateTime<Utc>>The due date of the card
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Card
 
impl<'de> Deserialize<'de> for Card
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 Ord for Card
 
impl Ord for Card
Source§impl PartialOrd for Card
 
impl PartialOrd for Card
impl Eq for Card
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.