pub struct FieldValues {
pub name: String,
pub label: Option<String>,
pub values: Vec<Value>,
}Expand description
One field on a resource and the value(s) it holds (instance side).
name is the field’s local name (the Value-suffix is stripped on link
properties, as in DSP-API property names like isPartOfBookValue →
isPartOfBook). label is the server-supplied rdfs:label resolved from
the defining data-model’s ontology; None when the fetch failed or the
field is a built-in. values is the list of parsed values for this field
(multi-value fields have more than one entry; the list is never empty — a
field with no readable values is omitted from the parent
ResourceDetail.values vec).
Fields§
§name: StringLocal field name (Value-suffix stripped for link properties).
label: Option<String>Human label from the defining data-model’s ontology; None if unresolved
or the field is a system built-in.
values: Vec<Value>Parsed values carried by this field — at least one entry. Each entry
pairs a ValueContent with an optional per-value comment.
Trait Implementations§
Source§impl Clone for FieldValues
impl Clone for FieldValues
Source§fn clone(&self) -> FieldValues
fn clone(&self) -> FieldValues
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more