LookupMatch
pub struct LookupMatch { /* private fields */ }LookupMatch is the result of an ACL lookup which found a matching prefix.
Methods
action
View sourcefn action(&self) -> &MatchActionReturns the associated prefix action.
Parameters
- self: &Self
Returns
from_body_handle
View sourceDeserialize the given response body into a LookupMatch.
Parameters
- body_handle: R
Returns
is_allow
View sourcefn is_allow(&self) -> boolReturns true if action is Allow.
Parameters
- self: &Self
Returns
bool
is_block
View sourcefn is_block(&self) -> boolReturns true if action is Block.
Parameters
- self: &Self
Returns
bool
is_other
View sourcefn is_other(&self, other: String) -> boolReturns true if action is Other and matches the given value.
Parameters
- self: &Self
- other: String
Returns
bool
prefix
View sourcefn prefix(&self) -> &strReturns the matching prefix.
Parameters
- self: &Self
Returns
&str
Trait implementations
impl Debug for LookupMatch
impl Deserialize for LookupMatch
deserialize
View sourcewhere __D: Deserializer<'de>,Parameters
- __deserializer: __D
Returns
_serde::__private228::Result<Self, __D::Error>
impl PartialEq for LookupMatch
impl Serialize for LookupMatch
serialize
View sourcewhere __S: Serializer,Parameters
- self: &Self
- __serializer: __S
Returns
_serde::__private228::Result<__S::Ok, __S::Error>