pub struct ChannelBotConfig {
pub bot_name: Option<String>,
pub bot_token: Option<String>,
}Expand description
Simple bot configuration for a channel. Allows per-agent override of bot name and token environment variable.
Fields§
§bot_name: Option<String>Bot display name/username for this channel.
bot_token: Option<String>Environment variable name for the bot token. If not set, uses the default env var for this channel type.
Trait Implementations§
Source§impl Clone for ChannelBotConfig
impl Clone for ChannelBotConfig
Source§fn clone(&self) -> ChannelBotConfig
fn clone(&self) -> ChannelBotConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelBotConfig
impl Debug for ChannelBotConfig
Source§impl Default for ChannelBotConfig
impl Default for ChannelBotConfig
Source§fn default() -> ChannelBotConfig
fn default() -> ChannelBotConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelBotConfig
impl<'de> Deserialize<'de> for ChannelBotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChannelBotConfig
impl PartialEq for ChannelBotConfig
Source§impl Serialize for ChannelBotConfig
impl Serialize for ChannelBotConfig
impl StructuralPartialEq for ChannelBotConfig
Auto Trait Implementations§
impl Freeze for ChannelBotConfig
impl RefUnwindSafe for ChannelBotConfig
impl Send for ChannelBotConfig
impl Sync for ChannelBotConfig
impl Unpin for ChannelBotConfig
impl UnsafeUnpin for ChannelBotConfig
impl UnwindSafe for ChannelBotConfig
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