pub struct StrategyMetadata {
pub strategy_id: &'static str,
pub strategy_name: &'static str,
pub risk: RiskLevel,
}Expand description
Metadata describing a strategy: identity and risk rating.
Carried on every ProbeSpec so the scheduler and output layer can attribute
each probe pair back to the strategy that generated it without holding a
reference to the strategy object.
Fields§
§strategy_id: &'static stre.g. "existence-get-200-404"
strategy_name: &'static stre.g. "GET 200/404 existence"
risk: RiskLevelRisk classification.
Trait Implementations§
Source§impl Clone for StrategyMetadata
impl Clone for StrategyMetadata
Source§fn clone(&self) -> StrategyMetadata
fn clone(&self) -> StrategyMetadata
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 moreAuto Trait Implementations§
impl Freeze for StrategyMetadata
impl RefUnwindSafe for StrategyMetadata
impl Send for StrategyMetadata
impl Sync for StrategyMetadata
impl Unpin for StrategyMetadata
impl UnsafeUnpin for StrategyMetadata
impl UnwindSafe for StrategyMetadata
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