Struct awsipranges::AwsIpRanges
source · pub struct AwsIpRanges { /* private fields */ }Expand description
Collection of AWS IP ranges that provides methods to search and filter the prefixes and extract information about the regions, network border groups, and services represented in the collection.
Implementations§
source§impl AwsIpRanges
impl AwsIpRanges
sourcepub fn sync_token(&self) -> &String
pub fn sync_token(&self) -> &String
Publication time of the current set of AWS IP Ranges in Unix epoch time format.
sourcepub fn create_date(&self) -> &DateTime<Utc>
pub fn create_date(&self) -> &DateTime<Utc>
Publication time of the current set of AWS IP Ranges in UTC DateTime format.
sourcepub fn regions(&self) -> &BTreeSet<Rc<str>>
pub fn regions(&self) -> &BTreeSet<Rc<str>>
AWS regions represented in the current set of AWS IP Ranges.
sourcepub fn network_border_groups(&self) -> &BTreeSet<Rc<str>>
pub fn network_border_groups(&self) -> &BTreeSet<Rc<str>>
Network border groups represented in the current set of AWS IP Ranges.
sourcepub fn services(&self) -> &BTreeSet<Rc<str>>
pub fn services(&self) -> &BTreeSet<Rc<str>>
AWS services represented in the current set of AWS IP Ranges.
sourcepub fn prefixes(&self) -> &BTreeMap<IpNetwork, AwsIpPrefix>
pub fn prefixes(&self) -> &BTreeMap<IpNetwork, AwsIpPrefix>
Map of IpNetwork CIDRs to AwsIpPrefix records.
sourcepub fn get_prefix(&self, value: &IpNetwork) -> Option<&AwsIpPrefix>
pub fn get_prefix(&self, value: &IpNetwork) -> Option<&AwsIpPrefix>
Get the AwsIpPrefix record for the provided IpNetwork CIDR.
sourcepub fn get_longest_match_prefix(
&self,
value: &IpNetwork,
) -> Option<&AwsIpPrefix>
pub fn get_longest_match_prefix( &self, value: &IpNetwork, ) -> Option<&AwsIpPrefix>
Get the longest matching AwsIpPrefix record for the provided IpNetwork CIDR.
sourcepub fn get_supernet_prefixes(
&self,
value: &IpNetwork,
) -> Option<BTreeSet<AwsIpPrefix>>
pub fn get_supernet_prefixes( &self, value: &IpNetwork, ) -> Option<BTreeSet<AwsIpPrefix>>
Get all AwsIpPrefix records that are supernets of the provided IpNetwork CIDR.
sourcepub fn get_region(&self, value: &str) -> Option<Rc<str>>
pub fn get_region(&self, value: &str) -> Option<Rc<str>>
Get a reference-counted string (Rc<str>) region for the provided region name.
sourcepub fn get_network_border_group(&self, value: &str) -> Option<Rc<str>>
pub fn get_network_border_group(&self, value: &str) -> Option<Rc<str>>
Get a reference-counted string (Rc<str>) network border group for the provided network border group name.
sourcepub fn get_service(&self, value: &str) -> Option<Rc<str>>
pub fn get_service(&self, value: &str) -> Option<Rc<str>>
Get a reference-counted string (Rc<str>) service for the provided service name.
sourcepub fn search<'p, P>(&self, values: P) -> Box<SearchResults>
pub fn search<'p, P>(&self, values: P) -> Box<SearchResults>
Search for the AWS IP Prefixes that contain the provided IpNetwork CIDRs.
sourcepub fn filter(&self, filter: &Filter) -> Box<AwsIpRanges>
pub fn filter(&self, filter: &Filter) -> Box<AwsIpRanges>
Filter the AWS IP Prefixes using the provided Filter.
Trait Implementations§
source§impl Clone for AwsIpRanges
impl Clone for AwsIpRanges
source§fn clone(&self) -> AwsIpRanges
fn clone(&self) -> AwsIpRanges
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsIpRanges
impl Debug for AwsIpRanges
source§impl Default for AwsIpRanges
impl Default for AwsIpRanges
source§fn default() -> AwsIpRanges
fn default() -> AwsIpRanges
source§impl From<BTreeMap<IpNetwork, AwsIpPrefix>> for AwsIpRanges
impl From<BTreeMap<IpNetwork, AwsIpPrefix>> for AwsIpRanges
source§impl From<BTreeSet<AwsIpPrefix>> for AwsIpRanges
impl From<BTreeSet<AwsIpPrefix>> for AwsIpRanges
source§fn from(value: BTreeSet<AwsIpPrefix>) -> Self
fn from(value: BTreeSet<AwsIpPrefix>) -> Self
Auto Trait Implementations§
impl Freeze for AwsIpRanges
impl RefUnwindSafe for AwsIpRanges
impl !Send for AwsIpRanges
impl !Sync for AwsIpRanges
impl Unpin for AwsIpRanges
impl UnwindSafe for AwsIpRanges
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)