pub enum StrategyReport {
Listed {
rows: Vec<StrategyFacetDescriptor>,
},
Shown {
descriptor: StrategyFacetDescriptor,
activation: Option<EndpointSummary>,
},
Activated {
facet: StrategyFacet,
summary: EndpointSummary,
outcome: MutationOutcome,
},
Deactivated {
facet: StrategyFacet,
outcome: MutationOutcome,
},
Set {
facet: StrategyFacet,
key: &'static str,
outcome: MutationOutcome,
},
Defaulted {
facet: StrategyFacet,
key: &'static str,
},
}Expand description
The typed result of a strategy command.
Variants§
Listed
strategy list: every declared facet.
Fields
rows: Vec<StrategyFacetDescriptor>One descriptor per facet, in declaration order.
Shown
strategy show: one facet’s descriptor plus its activation posture.
Fields
descriptor: StrategyFacetDescriptorThe facet descriptor.
activation: Option<EndpointSummary>The facet’s activation + endpoint posture (None when no config
file could be read).
Activated
strategy activate: the facet was activated with the settled posture.
Fields
facet: StrategyFacetThe activated facet.
summary: EndpointSummaryThe settled endpoint posture.
outcome: MutationOutcomeWhether the write applies or an env var shadows it.
Deactivated
strategy deactivate: the facet was deactivated.
Fields
facet: StrategyFacetThe deactivated facet.
outcome: MutationOutcomeWhether the write applies or an env var shadows it.
Set
strategy set: a facet key’s override was written.
Fields
facet: StrategyFacetThe mutated facet.
outcome: MutationOutcomeWhether the write applies or an env var shadows it.
Defaulted
strategy default / strategy remove: the override was dropped so the
schema default applies again.
Implementations§
Source§impl StrategyReport
impl StrategyReport
Sourcepub fn render_lines(&self) -> Vec<String>
pub fn render_lines(&self) -> Vec<String>
The operator-facing lines for this report.
Trait Implementations§
Source§impl Clone for StrategyReport
impl Clone for StrategyReport
Source§impl Debug for StrategyReport
impl Debug for StrategyReport
impl Eq for StrategyReport
Source§impl PartialEq for StrategyReport
impl PartialEq for StrategyReport
impl StructuralPartialEq for StrategyReport
Auto Trait Implementations§
impl Freeze for StrategyReport
impl RefUnwindSafe for StrategyReport
impl Send for StrategyReport
impl Sync for StrategyReport
impl Unpin for StrategyReport
impl UnsafeUnpin for StrategyReport
impl UnwindSafe for StrategyReport
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