Enum google_api_proto::google::cloud::vmwareengine::v1::external_access_rule::ip_range::IpRange
source · pub enum IpRange {
IpAddress(String),
IpAddressRange(String),
ExternalAddress(String),
}
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
.
Implementations§
source§impl IpRange
impl IpRange
sourcepub fn merge(
field: &mut Option<IpRange>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<IpRange>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for IpRange
impl PartialEq for IpRange
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request