pub struct MaxTurnsNudgeConfig {
pub threshold: u32,
pub message: String,
}Expand description
Configuration for the max-turns nudge middleware.
Fields§
§threshold: u32When remaining turns <= this threshold, inject a nudge message. Set to 0 to disable the nudge.
message: StringThe nudge message to inject as a user turn.
Trait Implementations§
Source§impl Clone for MaxTurnsNudgeConfig
impl Clone for MaxTurnsNudgeConfig
Source§fn clone(&self) -> MaxTurnsNudgeConfig
fn clone(&self) -> MaxTurnsNudgeConfig
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 MaxTurnsNudgeConfig
impl Debug for MaxTurnsNudgeConfig
Auto Trait Implementations§
impl Freeze for MaxTurnsNudgeConfig
impl RefUnwindSafe for MaxTurnsNudgeConfig
impl Send for MaxTurnsNudgeConfig
impl Sync for MaxTurnsNudgeConfig
impl Unpin for MaxTurnsNudgeConfig
impl UnsafeUnpin for MaxTurnsNudgeConfig
impl UnwindSafe for MaxTurnsNudgeConfig
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