pub struct HookOutput {
pub continue_execution: Option<bool>,
pub suppress_output: Option<bool>,
pub decision: Option<HookDecision>,
pub reason: Option<String>,
pub stop_reason: Option<String>,
pub system_message: Option<String>,
pub hook_specific_output: Option<HookSpecificOutput>,
}Fields§
§continue_execution: Option<bool>§suppress_output: Option<bool>§decision: Option<HookDecision>§reason: Option<String>§stop_reason: Option<String>§system_message: Option<String>§hook_specific_output: Option<HookSpecificOutput>Trait Implementations§
Source§impl Clone for HookOutput
impl Clone for HookOutput
Source§fn clone(&self) -> HookOutput
fn clone(&self) -> HookOutput
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 HookOutput
impl Debug for HookOutput
Source§impl Default for HookOutput
impl Default for HookOutput
Source§fn default() -> HookOutput
fn default() -> HookOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HookOutput
impl<'de> Deserialize<'de> for HookOutput
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 From<HookOutput> for HookResponse
impl From<HookOutput> for HookResponse
Source§fn from(output: HookOutput) -> Self
fn from(output: HookOutput) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HookOutput
impl PartialEq for HookOutput
Source§fn eq(&self, other: &HookOutput) -> bool
fn eq(&self, other: &HookOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HookOutput
Auto Trait Implementations§
impl Freeze for HookOutput
impl RefUnwindSafe for HookOutput
impl Send for HookOutput
impl Sync for HookOutput
impl Unpin for HookOutput
impl UnsafeUnpin for HookOutput
impl UnwindSafe for HookOutput
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