pub struct AppConfig {
pub agent_name: String,
pub version: String,
pub commands: Option<Vec<Box<dyn SlashCommand>>>,
pub command_extension: Option<Box<dyn Any + Send>>,
pub processing_message: String,
pub processing_message_fn: Option<Arc<dyn Fn() -> String + Send + Sync>>,
}Expand description
Configuration for the App
Fields§
§agent_name: StringAgent name (displayed in title bar)
version: StringAgent version
commands: Option<Vec<Box<dyn SlashCommand>>>Slash commands (if None, uses default commands)
command_extension: Option<Box<dyn Any + Send>>Extension data available to commands via ctx.extension::<T>()
processing_message: StringStatic message shown while processing (default: “Processing request…”)
processing_message_fn: Option<Arc<dyn Fn() -> String + Send + Sync>>Optional callback for dynamic messages. When set, overrides processing_message. Use this for rotating messages or context-aware status.
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 !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> 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