pub struct ValueMeta {
pub grade: ValueGrade,
pub provenance: Vec<ProvenanceClass>,
pub sources: Vec<String>,
pub as_of_ms: AsOf,
pub basis: Basis,
pub fields: Option<BTreeMap<String, ValueMeta>>,
pub items: Option<Vec<ValueMeta>>,
pub entries: Option<BTreeMap<String, ValueMeta>>,
}Expand description
Value metadata (spec 032, 3.2.2): carried by every input and step value of a plan 3 evaluation. A record carries one per field, a list one per item and a map one per entry, in the optional members.
Fields§
§grade: ValueGrade§provenance: Vec<ProvenanceClass>Sorted, duplicate-free.
sources: Vec<String>Sorted, duplicate-free source names.
as_of_ms: AsOf§basis: Basis§fields: Option<BTreeMap<String, ValueMeta>>§items: Option<Vec<ValueMeta>>§entries: Option<BTreeMap<String, ValueMeta>>Implementations§
Source§impl ValueMeta
impl ValueMeta
Sourcepub fn combination<'a>(
parts: impl IntoIterator<Item = &'a ValueMeta>,
basis: Basis,
) -> Self
pub fn combination<'a>( parts: impl IntoIterator<Item = &'a ValueMeta>, basis: Basis, ) -> Self
The combination of spec 032, 3.2.2 (minimum graded grade, union of
provenance and sources, oldest as-of) under basis, without parts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ValueMeta
impl<'de> Deserialize<'de> for ValueMeta
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 ValueMeta
Source§impl JsonSchema for ValueMeta
impl JsonSchema for ValueMeta
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 ValueMeta
Auto Trait Implementations§
impl Freeze for ValueMeta
impl RefUnwindSafe for ValueMeta
impl Send for ValueMeta
impl Sync for ValueMeta
impl Unpin for ValueMeta
impl UnsafeUnpin for ValueMeta
impl UnwindSafe for ValueMeta
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