pub struct TriggerConfig {
pub keywords: Vec<String>,
pub response: String,
}Expand description
Configuration for keyword-response triggers
Fields§
§keywords: Vec<String>Keywords that trigger this response
response: StringResponse message to send
Trait Implementations§
Source§impl Clone for TriggerConfig
impl Clone for TriggerConfig
Source§fn clone(&self) -> TriggerConfig
fn clone(&self) -> TriggerConfig
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 moreAuto Trait Implementations§
impl Freeze for TriggerConfig
impl RefUnwindSafe for TriggerConfig
impl Send for TriggerConfig
impl Sync for TriggerConfig
impl Unpin for TriggerConfig
impl UnwindSafe for TriggerConfig
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