pub struct Field {
pub field: FieldName,
pub options: BTreeMap<String, GenericValue>,
pub emit: bool,
pub source: FieldSource,
}Expand description
One field of a document: a name, optional OpenSearch mapping options passed
through to the index, and a source saying where its value
comes from. A leaf field’s type is declared on its source (a
Column’s ty, an Aggregate’s
value_type) so the document shape is known without
a database.
Fields§
§field: FieldName§options: BTreeMap<String, GenericValue>Extra OpenSearch mapping properties merged beside the derived type
(e.g. analyzer, scaling_factor). Empty for most fields.
emit: boolWhether the field reaches the emitted document. false makes it
input-only: fetched so a Script can read it, then stripped, and left
out of the mapping.
source: FieldSourceImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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
Auto Trait Implementations§
impl Forget for Field
impl Freeze for Field
impl Move for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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