pub struct HookReply {
pub context: Option<String>,
pub deny: Option<String>,
}Expand description
What the core answers a hook, which the plugin puts in its harness’s form.
Fields§
§context: Option<String>Context added for the model.
deny: Option<String>The call refused, and why.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookReply
impl<'de> Deserialize<'de> for HookReply
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
impl Eq for HookReply
impl StructuralPartialEq for HookReply
Auto Trait Implementations§
impl Freeze for HookReply
impl RefUnwindSafe for HookReply
impl Send for HookReply
impl Sync for HookReply
impl Unpin for HookReply
impl UnsafeUnpin for HookReply
impl UnwindSafe for HookReply
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