pub struct CardInner {
pub question: String,
pub answer: String,
pub question_type: CardType,
}
Expand description
A struct representing the serialisable information of a card
This contains the question, answer and input type of the card
Fields§
§question: String
The question of the Card
answer: String
The answer to the question of the Card
question_type: CardType
The type of card
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardInner
impl<'de> Deserialize<'de> for CardInner
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 CardInner
impl Ord for CardInner
Source§impl PartialOrd for CardInner
impl PartialOrd for CardInner
impl Eq for CardInner
impl StructuralPartialEq for CardInner
Auto Trait Implementations§
impl Freeze for CardInner
impl RefUnwindSafe for CardInner
impl Send for CardInner
impl Sync for CardInner
impl Unpin for CardInner
impl UnwindSafe for CardInner
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.