pub struct DecisionPolicy {
pub rules: Vec<DecisionRule>,
pub fallback: String,
}Expand description
Selects the first rule whose score exceeds its cutoff, or the fallback.
Fields§
§rules: Vec<DecisionRule>Rules evaluated in declaration order, regardless of the provider’s selected choice.
fallback: StringCandidate label selected when no rule matches or the verdict is unavailable.
Trait Implementations§
Source§impl Clone for DecisionPolicy
impl Clone for DecisionPolicy
Source§fn clone(&self) -> DecisionPolicy
fn clone(&self) -> DecisionPolicy
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 DecisionPolicy
impl Debug for DecisionPolicy
Source§impl<'de> Deserialize<'de> for DecisionPolicy
impl<'de> Deserialize<'de> for DecisionPolicy
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 DecisionPolicy
impl RefUnwindSafe for DecisionPolicy
impl Send for DecisionPolicy
impl Sync for DecisionPolicy
impl Unpin for DecisionPolicy
impl UnsafeUnpin for DecisionPolicy
impl UnwindSafe for DecisionPolicy
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