pub struct AssistantHookCallEnding {
pub on: OnTrue,
pub do: Vec<AssistantHookCallEndingDoInner>,
pub filters: Option<Vec<AssistantHookFilter>>,
}
Fields§
§on: OnTrue
This is the event that triggers this hook
do: Vec<AssistantHookCallEndingDoInner>
This is the set of actions to perform when the hook triggers
filters: Option<Vec<AssistantHookFilter>>
This is the set of filters that must match for the hook to trigger
Implementations§
Source§impl AssistantHookCallEnding
impl AssistantHookCallEnding
pub fn new( on: OnTrue, do: Vec<AssistantHookCallEndingDoInner>, ) -> AssistantHookCallEnding
Trait Implementations§
Source§impl Clone for AssistantHookCallEnding
impl Clone for AssistantHookCallEnding
Source§fn clone(&self) -> AssistantHookCallEnding
fn clone(&self) -> AssistantHookCallEnding
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AssistantHookCallEnding
impl Debug for AssistantHookCallEnding
Source§impl Default for AssistantHookCallEnding
impl Default for AssistantHookCallEnding
Source§fn default() -> AssistantHookCallEnding
fn default() -> AssistantHookCallEnding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantHookCallEnding
impl<'de> Deserialize<'de> for AssistantHookCallEnding
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 AssistantHookCallEnding
impl PartialEq for AssistantHookCallEnding
Source§impl Serialize for AssistantHookCallEnding
impl Serialize for AssistantHookCallEnding
impl StructuralPartialEq for AssistantHookCallEnding
Auto Trait Implementations§
impl Freeze for AssistantHookCallEnding
impl RefUnwindSafe for AssistantHookCallEnding
impl Send for AssistantHookCallEnding
impl Sync for AssistantHookCallEnding
impl Unpin for AssistantHookCallEnding
impl UnwindSafe for AssistantHookCallEnding
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