pub struct IndexMapping {
pub index: IndexName,
pub hash: ContentHash,
pub fields: Vec<ResolvedField>,
}Expand description
A fully-resolved mapping for one index: every field typed and ready for a sink to translate into its native mapping format.
A source produces this from the IndexSchema — using
each field’s explicit Mapping where one is given, and the database’s own
column types where it is not. The result has a
concrete type for every field, which is what a sink needs to create the
index up front rather than leaving the destination to guess.
Fields§
§index: IndexNameThe logical index name (the config key) — the pipeline’s stable identity.
hash: ContentHashHash of the parsed index schema. A sink that owns a physical index folds
this into the index’s name (e.g. users_3f2a1b9c), so a structural
schema change yields a new name — a fresh index that is re-seeded rather
than written into the old shape.
fields: Vec<ResolvedField>Trait Implementations§
Source§impl Clone for IndexMapping
impl Clone for IndexMapping
Source§fn clone(&self) -> IndexMapping
fn clone(&self) -> IndexMapping
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 IndexMapping
impl Debug for IndexMapping
Source§impl Serialize for IndexMapping
impl Serialize for IndexMapping
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 IndexMapping
impl RefUnwindSafe for IndexMapping
impl Send for IndexMapping
impl Sync for IndexMapping
impl Unpin for IndexMapping
impl UnsafeUnpin for IndexMapping
impl UnwindSafe for IndexMapping
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