pub enum Grade {
Hint,
Estimated,
Cached,
Authoritative,
}Expand description
The closed, ordered evidence grade. The derived order runs weakest to
strongest, so min and max are the grade order of spec 032, 3.2.1.
Variants§
Hint
A label from a source declared unreliable for that field, or a constructed key not yet corroborated.
Estimated
A computed or crawled approximation that never was authoritative.
Cached
Was authoritative at its as-of time and has not been revalidated.
Authoritative
Live, attested by the system that owns the fact.
Implementations§
Trait Implementations§
impl Copy for Grade
Source§impl<'de> Deserialize<'de> for Grade
impl<'de> Deserialize<'de> for Grade
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
impl Eq for Grade
Source§impl From<Grade> for ValueGrade
impl From<Grade> for ValueGrade
Source§impl JsonSchema for Grade
impl JsonSchema for Grade
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Grade
impl Ord for Grade
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Grade
impl PartialOrd for Grade
impl StructuralPartialEq for Grade
Auto Trait Implementations§
impl Freeze for Grade
impl RefUnwindSafe for Grade
impl Send for Grade
impl Sync for Grade
impl Unpin for Grade
impl UnsafeUnpin for Grade
impl UnwindSafe for Grade
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