pub struct DecidingRule {
pub folder_id: String,
pub depth: usize,
}Expand description
Which configured rule (if any) decided a Decision.
None means no rule matched anywhere in the chain and the bare
default policy decided it instead. Carried into the request log’s
decided_by_folder_id/decided_by_depth context fields so a refusal
is exactly as auditable as a success.
Fields§
§folder_id: StringThe folder id of the rule that decided the verdict.
depth: usizeHow many levels above the target this rule’s folder sits (0 = the target itself).
Trait Implementations§
Source§impl Clone for DecidingRule
impl Clone for DecidingRule
Source§fn clone(&self) -> DecidingRule
fn clone(&self) -> DecidingRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecidingRule
impl Debug for DecidingRule
impl Eq for DecidingRule
Source§impl PartialEq for DecidingRule
impl PartialEq for DecidingRule
Source§impl Serialize for DecidingRule
impl Serialize for DecidingRule
impl StructuralPartialEq for DecidingRule
Auto Trait Implementations§
impl Freeze for DecidingRule
impl RefUnwindSafe for DecidingRule
impl Send for DecidingRule
impl Sync for DecidingRule
impl Unpin for DecidingRule
impl UnsafeUnpin for DecidingRule
impl UnwindSafe for DecidingRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.