pub struct HookRejection {
pub reason: String,
pub user_message: Option<String>,
}Expand description
A block decision returned by a prompt hook.
Fields§
§reason: StringDiagnostic reason supplied by the hook.
user_message: Option<String>Optional safer text for a user-facing surface.
Trait Implementations§
Source§impl Clone for HookRejection
impl Clone for HookRejection
Source§impl Debug for HookRejection
impl Debug for HookRejection
impl Eq for HookRejection
Source§impl PartialEq for HookRejection
impl PartialEq for HookRejection
impl StructuralPartialEq for HookRejection
Auto Trait Implementations§
impl Freeze for HookRejection
impl RefUnwindSafe for HookRejection
impl Send for HookRejection
impl Sync for HookRejection
impl Unpin for HookRejection
impl UnsafeUnpin for HookRejection
impl UnwindSafe for HookRejection
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