pub struct ContextField {
pub name: String,
pub value: ContextValue,
pub provenance: ProvenanceClass,
pub source: String,
pub derivation: Derivation,
pub source_revision: String,
}Expand description
One named context field (3.2). provenance and source state who
asserted the value; they do not make it true or trusted (3.3).
Fields§
§name: String§value: ContextValue§provenance: ProvenanceClass§source: StringWho asserted it; recorded, never trusted as authority.
derivation: Derivation§source_revision: StringThe revision of the source the value was read at.
Trait Implementations§
Source§impl Clone for ContextField
impl Clone for ContextField
Source§impl Debug for ContextField
impl Debug for ContextField
Source§impl<'de> Deserialize<'de> for ContextField
impl<'de> Deserialize<'de> for ContextField
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 ContextField
Source§impl JsonSchema for ContextField
impl JsonSchema for ContextField
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 ContextField
impl PartialEq for ContextField
Source§impl Serialize for ContextField
impl Serialize for ContextField
impl StructuralPartialEq for ContextField
Auto Trait Implementations§
impl Freeze for ContextField
impl RefUnwindSafe for ContextField
impl Send for ContextField
impl Sync for ContextField
impl Unpin for ContextField
impl UnsafeUnpin for ContextField
impl UnwindSafe for ContextField
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