Struct google_api_proto::google::cloud::compute::v1::SecurityPolicyUserDefinedField
source · pub struct SecurityPolicyUserDefinedField {
pub base: Option<String>,
pub mask: Option<String>,
pub name: Option<String>,
pub offset: Option<i32>,
pub size: Option<i32>,
}
Expand description
Fields§
§base: Option<String>
The base relative to which ‘offset’ is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.
mask: Option<String>
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with “0x”). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
name: Option<String>
The name of this field. Must be unique within the policy.
offset: Option<i32>
Offset of the first byte of the field (in network byte order) relative to ‘base’.
size: Option<i32>
Size of the field in bytes. Valid values: 1-4.
Implementations§
Trait Implementations§
source§impl Clone for SecurityPolicyUserDefinedField
impl Clone for SecurityPolicyUserDefinedField
source§fn clone(&self) -> SecurityPolicyUserDefinedField
fn clone(&self) -> SecurityPolicyUserDefinedField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SecurityPolicyUserDefinedField
impl Message for SecurityPolicyUserDefinedField
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for SecurityPolicyUserDefinedField
impl PartialEq for SecurityPolicyUserDefinedField
source§fn eq(&self, other: &SecurityPolicyUserDefinedField) -> bool
fn eq(&self, other: &SecurityPolicyUserDefinedField) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityPolicyUserDefinedField
Auto Trait Implementations§
impl Freeze for SecurityPolicyUserDefinedField
impl RefUnwindSafe for SecurityPolicyUserDefinedField
impl Send for SecurityPolicyUserDefinedField
impl Sync for SecurityPolicyUserDefinedField
impl Unpin for SecurityPolicyUserDefinedField
impl UnwindSafe for SecurityPolicyUserDefinedField
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
§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>
T
in a tonic::Request