pub struct PolicyMatch {
pub users: Option<Vec<String>>,
pub ports: Option<Vec<String>>,
pub line_number: Option<i64>,
pub unknown: Unknown,
}Expand description
One rule that would match, and where in the document it is written.
Fields§
§users: Option<Vec<String>>The sources the rule affects.
ports: Option<Vec<String>>The destinations it reaches.
line_number: Option<i64>Which line of the policy file the rule is on, so that a caller can go and read it.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for PolicyMatch
impl Clone for PolicyMatch
Source§impl Debug for PolicyMatch
impl Debug for PolicyMatch
Source§impl<'de> Deserialize<'de> for PolicyMatch
impl<'de> Deserialize<'de> for PolicyMatch
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PolicyMatch
impl PartialEq for PolicyMatch
Source§impl Serialize for PolicyMatch
impl Serialize for PolicyMatch
impl StructuralPartialEq for PolicyMatch
Auto Trait Implementations§
impl Freeze for PolicyMatch
impl RefUnwindSafe for PolicyMatch
impl Send for PolicyMatch
impl Sync for PolicyMatch
impl Unpin for PolicyMatch
impl UnsafeUnpin for PolicyMatch
impl UnwindSafe for PolicyMatch
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