#[non_exhaustive]pub enum IpRange {
IpAddress(String),
IpAddressRange(String),
ExternalAddress(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IpAddress(String)
A single IP address. For example: 10.0.0.5.
IpAddressRange(String)
An IP address range in the CIDR format. For example: 10.0.0.0/24.
ExternalAddress(String)
The name of an ExternalAddress resource. The external address must
have been reserved in the scope of this external access rule’s parent
network policy. Provide the external address name in the form of
projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.
Trait Implementations§
impl StructuralPartialEq for IpRange
Auto Trait Implementations§
impl Freeze for IpRange
impl RefUnwindSafe for IpRange
impl Send for IpRange
impl Sync for IpRange
impl Unpin for IpRange
impl UnwindSafe for IpRange
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