pub struct AppliedRule {
pub rule_id: String,
pub fired: bool,
pub merge_strategy: MergeStrategy,
pub note: String,
}Expand description
One rule that contributed to the resolver’s decision.
Each entry records the rule id, whether it fired, the
MergeStrategy it applied, and a short human-readable note
the operator log can render verbatim.
Fields§
§rule_id: StringRule id.
fired: booltrue when the rule fired.
merge_strategy: MergeStrategyMerge strategy the rule carries.
note: StringHuman-readable note explaining why the rule fired or did not fire.
Trait Implementations§
Source§impl Clone for AppliedRule
impl Clone for AppliedRule
Source§fn clone(&self) -> AppliedRule
fn clone(&self) -> AppliedRule
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 AppliedRule
impl Debug for AppliedRule
Source§impl<'de> Deserialize<'de> for AppliedRule
impl<'de> Deserialize<'de> for AppliedRule
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
Source§impl PartialEq for AppliedRule
impl PartialEq for AppliedRule
Source§impl Serialize for AppliedRule
impl Serialize for AppliedRule
impl Eq for AppliedRule
impl StructuralPartialEq for AppliedRule
Auto Trait Implementations§
impl Freeze for AppliedRule
impl RefUnwindSafe for AppliedRule
impl Send for AppliedRule
impl Sync for AppliedRule
impl Unpin for AppliedRule
impl UnsafeUnpin for AppliedRule
impl UnwindSafe for AppliedRule
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.