pub struct StrategyFacetDescriptor {
pub facet: StrategyFacet,
pub config_section: &'static str,
pub trigger_kind: &'static str,
pub fields: Vec<&'static str>,
pub envs: Vec<&'static str>,
}Expand description
A console descriptor entry for one strategy facet: the typed data the
list/show arms render. The declared keys come straight from SCHEMA
(the one declaration site), so the descriptor cannot drift from the config.
Fields§
§facet: StrategyFacetThe facet this entry describes.
config_section: &'static strThe facet’s dotted TOML section path.
trigger_kind: &'static strThe facet’s reaction kind.
fields: Vec<&'static str>The declared config fields under this facet, sourced from the schema registry.
envs: Vec<&'static str>The declared DEGENBOT_* env names under this facet, sourced from the
schema registry.
Trait Implementations§
Source§impl Clone for StrategyFacetDescriptor
impl Clone for StrategyFacetDescriptor
Source§impl Debug for StrategyFacetDescriptor
impl Debug for StrategyFacetDescriptor
impl Eq for StrategyFacetDescriptor
Source§impl PartialEq for StrategyFacetDescriptor
impl PartialEq for StrategyFacetDescriptor
impl StructuralPartialEq for StrategyFacetDescriptor
Auto Trait Implementations§
impl Freeze for StrategyFacetDescriptor
impl RefUnwindSafe for StrategyFacetDescriptor
impl Send for StrategyFacetDescriptor
impl Sync for StrategyFacetDescriptor
impl Unpin for StrategyFacetDescriptor
impl UnsafeUnpin for StrategyFacetDescriptor
impl UnwindSafe for StrategyFacetDescriptor
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
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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