#[non_exhaustive]pub struct EvaluatorSpec {
pub name: String,
pub workflows: Vec<String>,
pub sample: f64,
pub status: Vec<RunStatus>,
pub tags: Vec<String>,
pub metadata: IndexMap<String, String>,
pub assertion: AssertionSpec,
}Expand description
One evaluator as written.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringScore name, unique in the file.
workflows: Vec<String>Workflow name patterns (* wildcards); empty = every workflow.
sample: f64Fraction of matching runs to score, 0..=1.
status: Vec<RunStatus>Any of these tags (empty = no tag filter).
metadata: IndexMap<String, String>Every one of these metadata values.
assertion: AssertionSpecImplementations§
Trait Implementations§
Source§impl Clone for EvaluatorSpec
impl Clone for EvaluatorSpec
Source§impl Debug for EvaluatorSpec
impl Debug for EvaluatorSpec
Source§impl PartialEq for EvaluatorSpec
impl PartialEq for EvaluatorSpec
impl StructuralPartialEq for EvaluatorSpec
Auto Trait Implementations§
impl Forget for EvaluatorSpec
impl Freeze for EvaluatorSpec
impl Move for EvaluatorSpec
impl RefUnwindSafe for EvaluatorSpec
impl Send for EvaluatorSpec
impl Sync for EvaluatorSpec
impl Unpin for EvaluatorSpec
impl UnsafeUnpin for EvaluatorSpec
impl UnwindSafe for EvaluatorSpec
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