pub struct CallbacksSection {
pub before_loop: Option<String>,
pub after_loop: Option<String>,
pub before_turn: Option<String>,
pub after_turn: Option<String>,
pub before_tool_execution: Option<String>,
pub after_tool_execution: Option<String>,
pub before_compaction_start: Option<String>,
pub after_compaction_end: Option<String>,
}Expand description
Callback references — Phase 2 WASM plugin loading. In Phase 1, these are stored as strings but not acted upon.
Fields§
§before_loop: Option<String>§after_loop: Option<String>§before_turn: Option<String>§after_turn: Option<String>§before_tool_execution: Option<String>§after_tool_execution: Option<String>§before_compaction_start: Option<String>§after_compaction_end: Option<String>Trait Implementations§
Source§impl Clone for CallbacksSection
impl Clone for CallbacksSection
Source§fn clone(&self) -> CallbacksSection
fn clone(&self) -> CallbacksSection
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 CallbacksSection
impl Debug for CallbacksSection
Source§impl Default for CallbacksSection
impl Default for CallbacksSection
Source§fn default() -> CallbacksSection
fn default() -> CallbacksSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallbacksSectionwhere
CallbacksSection: Default,
impl<'de> Deserialize<'de> for CallbacksSectionwhere
CallbacksSection: Default,
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 CallbacksSection
impl RefUnwindSafe for CallbacksSection
impl Send for CallbacksSection
impl Sync for CallbacksSection
impl Unpin for CallbacksSection
impl UnsafeUnpin for CallbacksSection
impl UnwindSafe for CallbacksSection
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