pub struct CustomCriterion {
pub name: String,
pub description: String,
pub threshold: f64,
pub config: Value,
}Expand description
Custom evaluation criterion
Fields§
§name: StringCriterion name
description: StringDescription of what this measures
threshold: f64Score threshold (0.0 - 1.0)
config: ValueCustom configuration as JSON
Trait Implementations§
Source§impl Clone for CustomCriterion
impl Clone for CustomCriterion
Source§impl Debug for CustomCriterion
impl Debug for CustomCriterion
Source§impl<'de> Deserialize<'de> for CustomCriterion
impl<'de> Deserialize<'de> for CustomCriterion
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 Forget for CustomCriterion
impl Freeze for CustomCriterionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for CustomCriterion
impl RefUnwindSafe for CustomCriterion
impl Send for CustomCriterion
impl Sync for CustomCriterion
impl Unpin for CustomCriterion
impl UnsafeUnpin for CustomCriterionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for CustomCriterion
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