pub struct VendorRuleMatch {
pub vendor: VendorId,
pub weight: u32,
}Expand description
One vendor entry inside a ResolutionRule::vendors list.
Each entry pairs a VendorId with a rule-weight (not to
be confused with the classifier’s signal weight). The rule-weight
tells the MergeStrategy::StrongestVendor logic which vendor
dominates when several listed vendors match simultaneously.
Fields§
§vendor: VendorIdVendor that triggers the rule. The TOML wire format uses
the label (e.g. "datadome",
"perimeter_x") so the format matches the existing vendor
classifier TOML definitions rather than the serde
snake_case rename of the enum.
weight: u32Per-rule weight used by
MergeStrategy::StrongestVendor when multiple listed
vendors match. Higher wins.
Trait Implementations§
Source§impl Clone for VendorRuleMatch
impl Clone for VendorRuleMatch
Source§fn clone(&self) -> VendorRuleMatch
fn clone(&self) -> VendorRuleMatch
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 VendorRuleMatch
impl Debug for VendorRuleMatch
Source§impl<'de> Deserialize<'de> for VendorRuleMatch
impl<'de> Deserialize<'de> for VendorRuleMatch
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 VendorRuleMatch
impl PartialEq for VendorRuleMatch
Source§impl Serialize for VendorRuleMatch
impl Serialize for VendorRuleMatch
impl Eq for VendorRuleMatch
impl StructuralPartialEq for VendorRuleMatch
Auto Trait Implementations§
impl Freeze for VendorRuleMatch
impl RefUnwindSafe for VendorRuleMatch
impl Send for VendorRuleMatch
impl Sync for VendorRuleMatch
impl Unpin for VendorRuleMatch
impl UnsafeUnpin for VendorRuleMatch
impl UnwindSafe for VendorRuleMatch
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.