pub struct ReplyConfig {
pub enabled: bool,
pub response: ReplyResponse,
pub wait_seconds: u32,
pub bot_prompt: String,
}Expand description
Per-channel reply configuration.
Fields§
§enabled: bool§response: ReplyResponse§wait_seconds: u32Seconds to wait after the latest inbound message before replying. 0 = reply immediately (no buffering).
bot_prompt: StringSingle "user" prompt for this Reply Bot (wrapped inside the shared
system prompt envelope when response is ReplyResponse::Ai).
Implementations§
Source§impl ReplyConfig
impl ReplyConfig
Trait Implementations§
Source§impl Clone for ReplyConfig
impl Clone for ReplyConfig
Source§fn clone(&self) -> ReplyConfig
fn clone(&self) -> ReplyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReplyConfig
impl Debug for ReplyConfig
Source§impl Default for ReplyConfig
impl Default for ReplyConfig
Source§impl<'de> Deserialize<'de> for ReplyConfig
impl<'de> Deserialize<'de> for ReplyConfig
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
Auto Trait Implementations§
impl Freeze for ReplyConfig
impl RefUnwindSafe for ReplyConfig
impl Send for ReplyConfig
impl Sync for ReplyConfig
impl Unpin for ReplyConfig
impl UnsafeUnpin for ReplyConfig
impl UnwindSafe for ReplyConfig
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