pub struct CorroborateDecl {
pub claim: String,
pub upgrade_to: Grade,
pub by: Vec<Check>,
pub mode: CorroborationMode,
pub on_contradiction: OnContradiction,
}Expand description
A corroboration step (spec 032, 3.7.1).
Fields§
§claim: StringAn input path or step value.
upgrade_to: GradeA grade above hint.
by: Vec<Check>Non-empty.
mode: CorroborationMode§on_contradiction: OnContradictionTrait Implementations§
Source§impl Clone for CorroborateDecl
impl Clone for CorroborateDecl
Source§impl Debug for CorroborateDecl
impl Debug for CorroborateDecl
Source§impl<'de> Deserialize<'de> for CorroborateDecl
impl<'de> Deserialize<'de> for CorroborateDecl
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
Source§impl JsonSchema for CorroborateDecl
impl JsonSchema for CorroborateDecl
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 PartialEq for CorroborateDecl
impl PartialEq for CorroborateDecl
Source§impl Serialize for CorroborateDecl
impl Serialize for CorroborateDecl
impl StructuralPartialEq for CorroborateDecl
Auto Trait Implementations§
impl Freeze for CorroborateDecl
impl RefUnwindSafe for CorroborateDecl
impl Send for CorroborateDecl
impl Sync for CorroborateDecl
impl Unpin for CorroborateDecl
impl UnsafeUnpin for CorroborateDecl
impl UnwindSafe for CorroborateDecl
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