pub struct GateThreshold {
pub max_severity: Option<Severity>,
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/max_downstream simply never triggers that branch of the policy.
Fields§
§max_severity: Option<Severity>Escalate when the radius’s severity is strictly above this ceiling.
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§fn clone(&self) -> GateThreshold
fn clone(&self) -> GateThreshold
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 GateThreshold
impl Debug for GateThreshold
Source§impl Default for GateThreshold
impl Default for GateThreshold
Source§fn default() -> GateThreshold
fn default() -> GateThreshold
Returns the “default value” for a type. Read more
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.