pub struct GateThreshold {
pub max_severity_rank: Option<u32>,
pub max_downstream: Option<usize>,
pub protected: Vec<String>,
}Expand description
The thresholds a gate decision is evaluated against. All fields are optional: an absent
max_severity_rank/max_downstream simply never triggers that branch of the policy.
Fields§
§max_severity_rank: Option<u32>Escalate when the radius’s severity is strictly above this ceiling. A severity rank from the bound layer’s own scale — higher is worse. Warble compares ranks and never reads the name beside them: what makes one impact worse than another is a judgement about the layer’s objects, which belongs to whoever owns the semantic format.
max_downstream: Option<usize>Escalate when the radius’s downstream count is strictly above this ceiling.
protected: Vec<String>Node ids that force a hard block if they are the seed or anywhere in the downstream set.
Trait Implementations§
Source§impl Clone for GateThreshold
impl Clone for GateThreshold
Source§impl Debug for GateThreshold
impl Debug for GateThreshold
Source§impl Default for GateThreshold
impl Default for GateThreshold
impl Eq for GateThreshold
Source§impl PartialEq for GateThreshold
impl PartialEq for GateThreshold
impl StructuralPartialEq for GateThreshold
Auto Trait Implementations§
impl Freeze for GateThreshold
impl RefUnwindSafe for GateThreshold
impl Send for GateThreshold
impl Sync for GateThreshold
impl Unpin for GateThreshold
impl UnsafeUnpin for GateThreshold
impl UnwindSafe for GateThreshold
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.