pub struct IPDiversityConfig {
pub max_nodes_per_64: usize,
pub max_nodes_per_48: usize,
pub max_nodes_per_32: usize,
pub max_nodes_per_asn: usize,
pub enable_geolocation_check: bool,
pub min_geographic_diversity: usize,
}
Expand description
Configuration for IP diversity enforcement at multiple subnet levels
Fields§
§max_nodes_per_64: usize
Maximum nodes per /64 subnet (default: 1)
max_nodes_per_48: usize
Maximum nodes per /48 allocation (default: 3)
max_nodes_per_32: usize
Maximum nodes per /32 region (default: 10)
max_nodes_per_asn: usize
Maximum nodes per AS number (default: 20)
enable_geolocation_check: bool
Enable GeoIP-based diversity checks
min_geographic_diversity: usize
Minimum number of different countries required
Trait Implementations§
Source§impl Clone for IPDiversityConfig
impl Clone for IPDiversityConfig
Source§fn clone(&self) -> IPDiversityConfig
fn clone(&self) -> IPDiversityConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IPDiversityConfig
impl Debug for IPDiversityConfig
Auto Trait Implementations§
impl Freeze for IPDiversityConfig
impl RefUnwindSafe for IPDiversityConfig
impl Send for IPDiversityConfig
impl Sync for IPDiversityConfig
impl Unpin for IPDiversityConfig
impl UnwindSafe for IPDiversityConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more