pub struct InputDecl {
pub name: String,
pub ty: TypeDecl,
pub provenance: Vec<ProvenanceClass>,
pub freshness: Freshness,
pub evidence: Option<EvidenceDecl>,
pub on_disagreement: Option<Disagreement>,
}Expand description
One declared input field (spec 002, 3.7.1).
Fields§
§name: String§ty: TypeDecl§provenance: Vec<ProvenanceClass>The provenance classes this input accepts; non-empty.
freshness: Freshness§evidence: Option<EvidenceDecl>Version 2: the sources that grade this input (spec 032, 3.3.3); an input without it is ungraded.
on_disagreement: Option<Disagreement>Version 2: how disagreeing entries are resolved (spec 032, 3.8);
omitted means require_agreement.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputDecl
impl<'de> Deserialize<'de> for InputDecl
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 InputDecl
impl JsonSchema for InputDecl
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 moreimpl StructuralPartialEq for InputDecl
Auto Trait Implementations§
impl Freeze for InputDecl
impl RefUnwindSafe for InputDecl
impl Send for InputDecl
impl Sync for InputDecl
impl Unpin for InputDecl
impl UnsafeUnpin for InputDecl
impl UnwindSafe for InputDecl
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