pub struct AssistantHooks {
pub on: On,
pub filters: Option<Vec<AssistantHookFilter>>,
pub do: Vec<Value>,
}Fields§
§on: OnThis is the event that triggers this hook
filters: Option<Vec<AssistantHookFilter>>This is the set of filters that must match for the hook to trigger
do: Vec<Value>This is the set of actions to perform when the hook triggers
Implementations§
Trait Implementations§
Source§impl Clone for AssistantHooks
impl Clone for AssistantHooks
Source§fn clone(&self) -> AssistantHooks
fn clone(&self) -> AssistantHooks
Returns a copy 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 AssistantHooks
impl Debug for AssistantHooks
Source§impl Default for AssistantHooks
impl Default for AssistantHooks
Source§fn default() -> AssistantHooks
fn default() -> AssistantHooks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantHooks
impl<'de> Deserialize<'de> for AssistantHooks
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 AssistantHooks
impl PartialEq for AssistantHooks
Source§impl Serialize for AssistantHooks
impl Serialize for AssistantHooks
impl StructuralPartialEq for AssistantHooks
Auto Trait Implementations§
impl Freeze for AssistantHooks
impl RefUnwindSafe for AssistantHooks
impl Send for AssistantHooks
impl Sync for AssistantHooks
impl Unpin for AssistantHooks
impl UnwindSafe for AssistantHooks
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