pub struct PolicyResult {
pub domain: String,
pub action: PolicyAction,
pub matched_pattern: Option<String>,
pub is_default: bool,
}Expand description
Policy evaluation result with details
Fields§
§domain: StringThe evaluated domain
action: PolicyActionThe resulting action
matched_pattern: Option<String>The pattern that matched (if any)
is_default: boolWhether this was a default action
Trait Implementations§
Source§impl Clone for PolicyResult
impl Clone for PolicyResult
Source§fn clone(&self) -> PolicyResult
fn clone(&self) -> PolicyResult
Returns a duplicate 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 PolicyResult
impl Debug for PolicyResult
Source§impl<'de> Deserialize<'de> for PolicyResult
impl<'de> Deserialize<'de> for PolicyResult
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
Auto Trait Implementations§
impl Freeze for PolicyResult
impl RefUnwindSafe for PolicyResult
impl Send for PolicyResult
impl Sync for PolicyResult
impl Unpin for PolicyResult
impl UnwindSafe for PolicyResult
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