pub struct PluginInput {
pub turn: u32,
pub message: Option<String>,
}Expand description
Input passed to plugin lifecycle hooks.
Fields§
§turn: u32Current conversation turn index.
message: Option<String>Optional user message text.
Trait Implementations§
Source§impl Clone for PluginInput
impl Clone for PluginInput
Source§fn clone(&self) -> PluginInput
fn clone(&self) -> PluginInput
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 PluginInput
impl RefUnwindSafe for PluginInput
impl Send for PluginInput
impl Sync for PluginInput
impl Unpin for PluginInput
impl UnsafeUnpin for PluginInput
impl UnwindSafe for PluginInput
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