Struct google_api_proto::google::cloud::compute::v1::FirewallPolicyAssociation
source · pub struct FirewallPolicyAssociation {
pub attachment_target: Option<String>,
pub display_name: Option<String>,
pub firewall_policy_id: Option<String>,
pub name: Option<String>,
pub short_name: Option<String>,
}
Expand description
Fields§
§attachment_target: Option<String>
The target that the firewall policy is attached to.
display_name: Option<String>
[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
firewall_policy_id: Option<String>
[Output Only] The firewall policy ID of the association.
name: Option<String>
The name for an association.
short_name: Option<String>
[Output Only] The short name of the firewall policy of the association.
Implementations§
source§impl FirewallPolicyAssociation
impl FirewallPolicyAssociation
sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Returns the value of display_name
, or the default value if display_name
is unset.
sourcepub fn attachment_target(&self) -> &str
pub fn attachment_target(&self) -> &str
Returns the value of attachment_target
, or the default value if attachment_target
is unset.
sourcepub fn firewall_policy_id(&self) -> &str
pub fn firewall_policy_id(&self) -> &str
Returns the value of firewall_policy_id
, or the default value if firewall_policy_id
is unset.
sourcepub fn short_name(&self) -> &str
pub fn short_name(&self) -> &str
Returns the value of short_name
, or the default value if short_name
is unset.
Trait Implementations§
source§impl Clone for FirewallPolicyAssociation
impl Clone for FirewallPolicyAssociation
source§fn clone(&self) -> FirewallPolicyAssociation
fn clone(&self) -> FirewallPolicyAssociation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FirewallPolicyAssociation
impl Debug for FirewallPolicyAssociation
source§impl Default for FirewallPolicyAssociation
impl Default for FirewallPolicyAssociation
source§impl Message for FirewallPolicyAssociation
impl Message for FirewallPolicyAssociation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for FirewallPolicyAssociation
impl PartialEq for FirewallPolicyAssociation
source§fn eq(&self, other: &FirewallPolicyAssociation) -> bool
fn eq(&self, other: &FirewallPolicyAssociation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallPolicyAssociation
Auto Trait Implementations§
impl Freeze for FirewallPolicyAssociation
impl RefUnwindSafe for FirewallPolicyAssociation
impl Send for FirewallPolicyAssociation
impl Sync for FirewallPolicyAssociation
impl Unpin for FirewallPolicyAssociation
impl UnwindSafe for FirewallPolicyAssociation
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