mapstic 0.1.0

Tooling to generate Elasticsearch index mappings from type definitions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]

use mapstic::ToMapping;

#[derive(ToMapping)]
pub struct Tuple {
    #[mapstic(params(on_container = true))]
    tuple: TupleStruct,
}

#[derive(ToMapping)]
#[mapstic(params(on_struct = true))]
struct TupleStruct(#[mapstic(mapping_type = "keyword")] String);