pub struct StrategyView {
pub action: Option<String>,
pub category: Option<String>,
pub id: Option<String>,
pub tags: Option<Vec<String>>,
pub workload: Option<String>,
}Fields§
§action: Option<String>Action is the tactic itself: the thing to go and do.
category: Option<String>Category is the growth discipline the tactic belongs to — the axis ?category= narrows on.
id: Option<String>ID is the tactic’s stable slug in the corpus.
Tags are the PRECONDITIONS this tactic already satisfied to appear in the answer — stage:<name> and has:<capability> predicates over the org’s observed profile. They are carried back so a caller can show why a tactic surfaced, not so it can filter again.
workload: Option<String>Workload is how much effort running the tactic costs, so a corpus can be cut to what the org has the hands for.
Implementations§
Source§impl StrategyView
impl StrategyView
pub fn new() -> StrategyView
Trait Implementations§
Source§impl Clone for StrategyView
impl Clone for StrategyView
Source§fn clone(&self) -> StrategyView
fn clone(&self) -> StrategyView
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 StrategyView
impl Debug for StrategyView
Source§impl Default for StrategyView
impl Default for StrategyView
Source§fn default() -> StrategyView
fn default() -> StrategyView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StrategyView
impl<'de> Deserialize<'de> for StrategyView
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 StrategyView
impl PartialEq for StrategyView
Source§impl Serialize for StrategyView
impl Serialize for StrategyView
impl StructuralPartialEq for StrategyView
Auto Trait Implementations§
impl Freeze for StrategyView
impl RefUnwindSafe for StrategyView
impl Send for StrategyView
impl Sync for StrategyView
impl Unpin for StrategyView
impl UnsafeUnpin for StrategyView
impl UnwindSafe for StrategyView
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