pub enum StrategyMarker {
Resolved {
playbook_id: String,
target_class: TargetClass,
},
Manual,
}Expand description
What the resolver decided to do with the vendor classification.
Resolved means the resolver picked a concrete playbook. Manual
means the resolver could not pick a playbook with sufficient
confidence and is deferring to whatever manual mode selection the
caller had in effect before the resolver was invoked (this is
the “non-breaking integration with existing manual mode
selection” guarantee from the T90 spec).
Variants§
Resolved
Resolver chose a playbook deterministically.
Fields
§
playbook_id: StringPlaybook id the resolver chose (matches
crate::playbooks::Playbook::id).
§
target_class: TargetClassTarget class the resolved playbook maps to.
Manual
Resolver deferred to manual mode. Existing manual mode selection continues to apply — the resolver did not modify the caller’s mode state.
Implementations§
Trait Implementations§
Source§impl Clone for StrategyMarker
impl Clone for StrategyMarker
Source§fn clone(&self) -> StrategyMarker
fn clone(&self) -> StrategyMarker
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 StrategyMarker
impl Debug for StrategyMarker
Source§impl<'de> Deserialize<'de> for StrategyMarker
impl<'de> Deserialize<'de> for StrategyMarker
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 StrategyMarker
impl PartialEq for StrategyMarker
Source§impl Serialize for StrategyMarker
impl Serialize for StrategyMarker
impl Eq for StrategyMarker
impl StructuralPartialEq for StrategyMarker
Auto Trait Implementations§
impl Freeze for StrategyMarker
impl RefUnwindSafe for StrategyMarker
impl Send for StrategyMarker
impl Sync for StrategyMarker
impl Unpin for StrategyMarker
impl UnsafeUnpin for StrategyMarker
impl UnwindSafe for StrategyMarker
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.