ecs_types
Rust types mapping to the elasticsearch common schema
This crate provides basic type to be used when importing data to elasticsearch. It is generated from the type definitions in https://github.com/elastic/ecs.
The crates documentation can be found at https://docs.rs/crate/ecs_types.# ecs_types
Usage example
use Timestamp;
use *;
use json;
let now: Timestamp = now.into;
let mut base = new;
let mut file = default;
file.set_name;
file.set_mtime;
base.with_file;
println!;
creates the following result:
License: Apache-2.0