File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,28 @@ pub struct City {
25
25
pub traits : Option < model:: Traits > ,
26
26
}
27
27
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
+
28
50
pub mod model {
29
51
use std:: collections:: BTreeMap ;
30
52
You can’t perform that action at this time.
0 commit comments