[][src]Struct cms_tools::Question

pub struct Question {
    pub max_score: u8,
    pub text: String,
    pub question_type: String,
    pub choices: Option<Vec<String>>,
    pub answers: Option<Vec<(String, u32)>>,
}

Question inside of a test

Fields

max_score: u8text: Stringquestion_type: Stringchoices: Option<Vec<String>>answers: Option<Vec<(String, u32)>>

Trait Implementations

impl Clone for Question[src]

impl Debug for Question[src]

impl Serialize for Question[src]

impl<'de> Deserialize<'de> for Question[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err