Module elastic_types::ip
[−]
[src]
Implementation of the Elasticsearch ip
type.
Examples
For defining your own ip mapping, see mapping details.
Map with a default ip
:
struct MyType { pub field: std::net::Ipv4Addr }
Map with a custom ip
:
#[macro_use] struct MyType { pub field: Ip<MyIpMapping> }
Map a custom type as an ip
field:
#[derive(Serialize)] struct MyIpField(String); impl IpFieldType<DefaultIpMapping> for MyIpField {}
Links
Modules
mapping |
Mapping for the Elasticsearch |
prelude |
Includes all types for the |
Structs
Ip |
An Elasticsearch |