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
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
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
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.
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 Default for SecurityPolicyUserDefinedField
impl Default for SecurityPolicyUserDefinedField
Source§fn default() -> SecurityPolicyUserDefinedField
fn default() -> SecurityPolicyUserDefinedField
Source§impl<'de> Deserialize<'de> for SecurityPolicyUserDefinedField
impl<'de> Deserialize<'de> for SecurityPolicyUserDefinedField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more