#[non_exhaustive]pub struct IpRange {
pub ip_range: Option<IpRange>,
/* private fields */
}Expand description
An IP range provided in any one of the supported formats.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ip_range: Option<IpRange>Implementations§
Source§impl IpRange
impl IpRange
pub fn new() -> Self
Sourcepub fn set_ip_range<T: Into<Option<IpRange>>>(self, v: T) -> Self
pub fn set_ip_range<T: Into<Option<IpRange>>>(self, v: T) -> Self
Sets the value of ip_range.
Note that all the setters affecting ip_range are mutually
exclusive.
Sourcepub fn ip_address(&self) -> Option<&String>
pub fn ip_address(&self) -> Option<&String>
The value of ip_range
if it holds a IpAddress, None if the field is not set or
holds a different branch.
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_range
to hold a IpAddress.
Note that all the setters affecting ip_range are
mutually exclusive.
Sourcepub fn ip_address_range(&self) -> Option<&String>
pub fn ip_address_range(&self) -> Option<&String>
The value of ip_range
if it holds a IpAddressRange, None if the field is not set or
holds a different branch.
Sourcepub fn set_ip_address_range<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address_range<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_range
to hold a IpAddressRange.
Note that all the setters affecting ip_range are
mutually exclusive.
Sourcepub fn external_address(&self) -> Option<&String>
pub fn external_address(&self) -> Option<&String>
The value of ip_range
if it holds a ExternalAddress, None if the field is not set or
holds a different branch.
Sourcepub fn set_external_address<T: Into<String>>(self, v: T) -> Self
pub fn set_external_address<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_range
to hold a ExternalAddress.
Note that all the setters affecting ip_range are
mutually exclusive.