pub struct Mapping {
pub mapping_type: MappingType,
pub extra: BTreeMap<String, GenericValue>,
}Expand description
OpenSearch mapping. mapping_type is required; all other properties are passed through as-is.
Fields§
§mapping_type: MappingType§extra: BTreeMap<String, GenericValue>Trait Implementations§
Source§impl Serialize for Mapping
Serializes the way OpenSearch expects a field mapping — { "type": …, …extra }
— rather than the struct’s two named fields. The extra settings sit beside
type, exactly as they would in the index body.
impl Serialize for Mapping
Serializes the way OpenSearch expects a field mapping — { "type": …, …extra }
— rather than the struct’s two named fields. The extra settings sit beside
type, exactly as they would in the index body.
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 Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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