pub struct ResolvedField {
pub name: FieldName,
pub mapping: Mapping,
pub nullable: bool,
pub array: bool,
pub children: Vec<ResolvedField>,
}Expand description
One field within an IndexMapping: the document key it lands under, its
resolved Mapping (the mapping_type is always present), whether the
value can be null, and the fields nested under it for object / nested
types.
Fields§
§name: FieldName§mapping: Mapping§nullable: boolWhether this field’s value can be null in the document. Derived by the
source while resolving the mapping — the config does not state it, but the
source knows (a column’s NOT NULL, a primary key, a default, the
arity of a relation, an aggregate’s zero-row behavior). A sink ignores it;
it exists for consumers that turn the mapping into typed bindings, where
nullable is the difference between T and Option<T>.
array: boolWhether this field’s value is a flat scalar array (the mapping_type is
then the element type — OpenSearch has no array type). True only for
ids; a consumer turning the mapping into typed bindings reads it as the
difference between T and Vec<T>.
children: Vec<ResolvedField>Trait Implementations§
Source§impl Clone for ResolvedField
impl Clone for ResolvedField
Source§fn clone(&self) -> ResolvedField
fn clone(&self) -> ResolvedField
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more