pub struct SlimCard {
pub question: String,
pub answer: String,
pub difficult: bool,
pub starred: bool,
}
Expand description
A slim representation of a card without internal metadata, which will be returned when polling a
crate::Driver
.
Fields§
§question: String
The question on the card.
answer: String
The answer on the ‘other side’ of the card.
difficult: bool
Whether or not the card has been automatically marked as difficult. Callers may wish to highlight this to users when a question is displayed, or not.
starred: bool
Whether or not the card has been starred, which, likewise, callers may wish to highlight or not when displaying this card.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SlimCard
impl Send for SlimCard
impl Sync for SlimCard
impl Unpin for SlimCard
impl UnwindSafe for SlimCard
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