pub struct CriterionDescriptor {
pub key: &'static str,
pub label: &'static str,
pub help: &'static str,
pub quantity: Option<&'static str>,
pub kind: CriterionKind,
}Expand description
Descriptor of one criterion in an engine’s criteria catalog (spec §7.2).
key is stable per engine: applications persist valuations against it,
so renaming one is a compatibility break.
Fields§
§key: &'static strStable criterion identifier, unique within the engine.
label: &'static strHuman-facing name.
help: &'static strOne or two sentences on what the criterion judges.
quantity: Option<&'static str>§5 quantity key — values are in the quantity’s SI display unit —
or None for a dimensionless criterion.
kind: CriterionKindShape of the criterion’s value.
Trait Implementations§
Source§impl Clone for CriterionDescriptor
impl Clone for CriterionDescriptor
Source§fn clone(&self) -> CriterionDescriptor
fn clone(&self) -> CriterionDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CriterionDescriptor
Source§impl Debug for CriterionDescriptor
impl Debug for CriterionDescriptor
Source§impl PartialEq for CriterionDescriptor
impl PartialEq for CriterionDescriptor
Source§impl Serialize for CriterionDescriptor
impl Serialize for CriterionDescriptor
impl StructuralPartialEq for CriterionDescriptor
Auto Trait Implementations§
impl Freeze for CriterionDescriptor
impl RefUnwindSafe for CriterionDescriptor
impl Send for CriterionDescriptor
impl Sync for CriterionDescriptor
impl Unpin for CriterionDescriptor
impl UnsafeUnpin for CriterionDescriptor
impl UnwindSafe for CriterionDescriptor
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