pub struct AppConfig {
pub states: Arc<StatesConfig>,
pub phases: Arc<PhasesConfig>,
pub deps: Arc<DependenciesConfig>,
pub auto_advance: Arc<AutoAdvanceConfig>,
pub attachments: Arc<AttachmentsConfig>,
pub tags: Arc<TagsConfig>,
pub ids: Arc<IdsConfig>,
pub workflows: Arc<WorkflowsConfig>,
pub feedback: Arc<FeedbackConfig>,
}Expand description
Consolidated application configuration.
Bundles all individual config types behind Arc so that they can be shared
cheaply across tool handlers, resource handlers, and option structs.
Instead of passing 8+ individual Arc<XxxConfig> parameters, callers pass
a single &AppConfig.
Fields§
§states: Arc<StatesConfig>§phases: Arc<PhasesConfig>§deps: Arc<DependenciesConfig>§auto_advance: Arc<AutoAdvanceConfig>§attachments: Arc<AttachmentsConfig>§ids: Arc<IdsConfig>§workflows: Arc<WorkflowsConfig>§feedback: Arc<FeedbackConfig>Implementations§
Source§impl AppConfig
impl AppConfig
Sourcepub fn new(
states: Arc<StatesConfig>,
phases: Arc<PhasesConfig>,
deps: Arc<DependenciesConfig>,
auto_advance: Arc<AutoAdvanceConfig>,
attachments: Arc<AttachmentsConfig>,
tags: Arc<TagsConfig>,
ids: Arc<IdsConfig>,
workflows: Arc<WorkflowsConfig>,
feedback: Arc<FeedbackConfig>,
) -> Self
pub fn new( states: Arc<StatesConfig>, phases: Arc<PhasesConfig>, deps: Arc<DependenciesConfig>, auto_advance: Arc<AutoAdvanceConfig>, attachments: Arc<AttachmentsConfig>, tags: Arc<TagsConfig>, ids: Arc<IdsConfig>, workflows: Arc<WorkflowsConfig>, feedback: Arc<FeedbackConfig>, ) -> Self
Create a new AppConfig from individually wrapped configs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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