elastic_types 0.20.10

A strongly-typed implementation of Elasticsearch core types and Mapping API.
Documentation
use elastic_types;
use elastic_types::prelude::*;
use string_fixtures::*;

use test::Bencher;

#[bench]
fn keyword_mapping(b: &mut Bencher) {
    b.iter(|| {
        elastic_types::derive::standalone_field_ser(MyKeywordMapping).unwrap()
    });
}

#[bench]
fn text_mapping(b: &mut Bencher) {
    b.iter(|| {
        elastic_types::derive::standalone_field_ser(MyTextMapping).unwrap()
    });
}