pub struct ScoreQuestion {
pub instructions: Entry,
pub criteria: Vec<Entry>,
pub extra: Map<String, Value>,
}Expand description
A question that assigns a score from an ordered rubric.
Fields§
§instructions: EntryThe question as text, a JSON object or array, or null.
criteria: Vec<Entry>At least two level descriptions, indexed by score from zero.
extra: Map<String, Value>Fields this crate does not model yet, sent as written.
Implementations§
Trait Implementations§
Source§impl Clone for ScoreQuestion
impl Clone for ScoreQuestion
Source§impl Debug for ScoreQuestion
impl Debug for ScoreQuestion
Source§impl Default for ScoreQuestion
impl Default for ScoreQuestion
Source§impl<'de> Deserialize<'de> for ScoreQuestion
impl<'de> Deserialize<'de> for ScoreQuestion
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 From<ScoreQuestion> for Question
impl From<ScoreQuestion> for Question
Source§fn from(question: ScoreQuestion) -> Self
fn from(question: ScoreQuestion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScoreQuestion
impl PartialEq for ScoreQuestion
Source§impl QuestionKind for ScoreQuestion
impl QuestionKind for ScoreQuestion
Source§type Answer = ScoreAnswer
type Answer = ScoreAnswer
The answer this question produces.
Source§impl Serialize for ScoreQuestion
impl Serialize for ScoreQuestion
impl StructuralPartialEq for ScoreQuestion
Auto Trait Implementations§
impl Freeze for ScoreQuestion
impl RefUnwindSafe for ScoreQuestion
impl Send for ScoreQuestion
impl Sync for ScoreQuestion
impl Unpin for ScoreQuestion
impl UnsafeUnpin for ScoreQuestion
impl UnwindSafe for ScoreQuestion
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