Crates.io | elastic-common-schema |
lib.rs | elastic-common-schema |
version | 8.11.0 |
source | src |
created_at | 2024-02-09 12:28:02.395288 |
updated_at | 2024-02-09 12:32:32.998575 |
description | Elastic Common Schema (ECS) for Rust |
homepage | |
repository | https://github.com/danielbcorreia/elastic-common-schema-rs |
max_upload_size | |
id | 1133899 |
size | 462,241 |
This crate provides a set of constants generated from the Elastic Common Schema (ECS) for use in Rust projects.
These constants are separated into modules based on the ECS fieldset.
Add this crate to your Cargo.toml
. Note that the version is indexed to the ECS version:
[dependencies]
elastic-common-schema = "8.11.0"
Then use the constants as you wish:
use elastic_common_schema::ecs;
fn main() {
println!("{}", ecs::http::HTTP_VERSION);
}