Skip to content

Commit d8bd828

Browse files
committed
Merge pull request #2 from gloryman/structs
Mising structures
2 parents b91cadd + 9cb4a97 commit d8bd828

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/maxminddb/geoip2.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,28 @@ pub struct City {
2525
pub traits: Option<model::Traits>,
2626
}
2727

28+
/// GeoIP2 ISP record
29+
#[derive(RustcDecodable, Debug)]
30+
pub struct Isp {
31+
pub autonomous_system_number: Option<u32>,
32+
pub autonomous_system_organization: Option<String>,
33+
pub isp: Option<String>,
34+
pub organization: Option<String>,
35+
}
36+
37+
/// GeoIP2 Connection-Type record
38+
#[derive(RustcDecodable, Debug)]
39+
pub struct ConnectionType {
40+
pub connection_type: Option<String>,
41+
}
42+
43+
/// GeoIP2 Anonymous Ip record
44+
#[derive(RustcDecodable, Debug)]
45+
pub struct AnonymousIp {
46+
pub is_anonymous: Option<bool>,
47+
pub is_public_proxy: Option<bool>
48+
}
49+
2850
pub mod model {
2951
use std::collections::BTreeMap;
3052

0 commit comments

Comments
 (0)