pub enum StrategyCommand {
List,
Show {
facet: StrategyFacet,
},
Activate {
facet: StrategyFacet,
endpoints: Option<String>,
endpoints_default: bool,
},
Deactivate {
facet: StrategyFacet,
},
Set {
facet: StrategyFacet,
key: String,
value: String,
},
Default {
facet: StrategyFacet,
key: String,
},
Remove {
facet: StrategyFacet,
key: String,
},
}Expand description
The strategy command group.
Variants§
List
strategy list: every declared facet with its section and trigger kind.
Show
strategy show <facet>: one facet’s descriptor, activation, and
resolved endpoint posture.
Fields
facet: StrategyFacetThe facet to show.
Activate
strategy activate <facet>: activate the facet and settle its endpoint
posture (--endpoints <csv> or --endpoints-default, exactly one;
neither is allowed only when the facet already carries a settled
choice).
Fields
facet: StrategyFacetThe facet to activate.
Deactivate
strategy deactivate <facet>: deactivate the facet; its recorded
endpoint choice stays put for a later re-activation.
Fields
facet: StrategyFacetThe facet to deactivate.
Set
strategy set <facet> <key> <value>: write one declared facet key.
Fields
facet: StrategyFacetThe facet to mutate.
Default
strategy default <facet> <key>: drop one key’s override so the
declared schema default applies again.
Remove
strategy remove <facet> <key>: the default verb’s traditional
spelling (strategy default reads clearer; both behave identically).
Implementations§
Source§impl StrategyCommand
impl StrategyCommand
Sourcepub const fn prompt_plan(&self, _ctx: &CliContext<'_>) -> PromptPlan
pub const fn prompt_plan(&self, _ctx: &CliContext<'_>) -> PromptPlan
No strategy arm prompts: writes are config-only and reversible.
Trait Implementations§
Source§impl Clone for StrategyCommand
impl Clone for StrategyCommand
Source§impl Debug for StrategyCommand
impl Debug for StrategyCommand
impl Eq for StrategyCommand
Source§impl PartialEq for StrategyCommand
impl PartialEq for StrategyCommand
impl StructuralPartialEq for StrategyCommand
Auto Trait Implementations§
impl Freeze for StrategyCommand
impl RefUnwindSafe for StrategyCommand
impl Send for StrategyCommand
impl Sync for StrategyCommand
impl Unpin for StrategyCommand
impl UnsafeUnpin for StrategyCommand
impl UnwindSafe for StrategyCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more