pub struct Rubric {
pub name: String,
pub description: String,
pub weight: f64,
pub levels: Vec<RubricLevel>,
}Expand description
A single rubric for quality assessment
Fields§
§name: StringRubric name
description: StringWhat this rubric measures
weight: f64Weight for this rubric (0.0 - 1.0)
levels: Vec<RubricLevel>Scoring levels (optional)
Implementations§
Source§impl Rubric
impl Rubric
Sourcepub fn with_weight(self, weight: f64) -> Self
pub fn with_weight(self, weight: f64) -> Self
Set weight
Sourcepub fn with_levels(self, levels: Vec<RubricLevel>) -> Self
pub fn with_levels(self, levels: Vec<RubricLevel>) -> Self
Add scoring levels
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rubric
impl<'de> Deserialize<'de> for Rubric
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
Auto Trait Implementations§
impl Freeze for Rubric
impl RefUnwindSafe for Rubric
impl Send for Rubric
impl Sync for Rubric
impl Unpin for Rubric
impl UnsafeUnpin for Rubric
impl UnwindSafe for Rubric
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