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>
}

Links

Modules

mapping

Mapping for the Elasticsearch ip type.

prelude

Includes all types for the ip type.

Structs

Ip

An Elasticsearch ip with a mapping.