pub struct HookVerdict {
pub blocked: Option<HookBlock>,
pub approved: bool,
pub discontinued: bool,
pub discontinue_message: Option<String>,
pub updated_input: Option<Value>,
pub context: Vec<String>,
}Expand description
What one run of an event’s hooks came to, merged.
Fields§
§blocked: Option<HookBlock>§approved: boolA hook answered a permission question in advance.
discontinued: boolA hook asked to end the turn.
discontinue_message: Option<String>§updated_input: Option<Value>The input the action goes on with, where the event reads a rewrite.
context: Vec<String>System reminders for the model; empty when blocked or where the event takes none.
Trait Implementations§
Source§impl Clone for HookVerdict
impl Clone for HookVerdict
Source§impl Debug for HookVerdict
impl Debug for HookVerdict
Auto Trait Implementations§
impl Forget for HookVerdict
impl Freeze for HookVerdictwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for HookVerdict
impl RefUnwindSafe for HookVerdict
impl Send for HookVerdict
impl Sync for HookVerdict
impl Unpin for HookVerdict
impl UnsafeUnpin for HookVerdictwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for HookVerdict
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