pub struct ResolvedField {
pub name: FieldName,
pub mapping: Mapping,
pub nullable: 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>.
children: Vec<ResolvedField>Trait Implementations§
Source§impl Clone for ResolvedField
impl Clone for ResolvedField
Source§fn clone(&self) -> ResolvedField
fn clone(&self) -> ResolvedField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedField
impl Debug for ResolvedField
Source§impl Serialize for ResolvedField
impl Serialize for ResolvedField
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ResolvedField
impl RefUnwindSafe for ResolvedField
impl Send for ResolvedField
impl Sync for ResolvedField
impl Unpin for ResolvedField
impl UnsafeUnpin for ResolvedField
impl UnwindSafe for ResolvedField
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