Skip to content

Commit 3b2e65a

Browse files
author
Skye
committed
Add missing is_anycast trait
In December, maxmind added a new `is_anycast` flag to their database files. Ref: https://dev.maxmind.com/geoip/release-notes/2023#anycast-flag-available-for-geoip-web-services-and-databases. This change adds that to the default `Traits` exported by this library
1 parent fc15a32 commit 3b2e65a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/maxminddb/geoip2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ pub mod country {
122122
#[derive(Deserialize, Serialize, Clone, Debug)]
123123
pub struct Traits {
124124
pub is_anonymous_proxy: Option<bool>,
125+
pub is_anycast: Option<bool>,
125126
pub is_satellite_provider: Option<bool>,
126127
}
127128
}
@@ -218,6 +219,7 @@ pub mod enterprise {
218219
pub is_anonymous: Option<bool>,
219220
pub is_anonymous_proxy: Option<bool>,
220221
pub is_anonymous_vpn: Option<bool>,
222+
pub is_anycast: Option<bool>,
221223
pub is_hosting_provider: Option<bool>,
222224
pub isp: Option<&'a str>,
223225
pub is_public_proxy: Option<bool>,

0 commit comments

Comments
 (0)