#[non_exhaustive]pub enum HostCallKind {
Tool {
name: String,
input: Value,
},
Hook {
event: String,
input: Value,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tool
Run the declared tool name on input, already checked against its
schema.
Hook
Answer the hook event on input, the payload a command hook reads.
Trait Implementations§
Source§impl Clone for HostCallKind
impl Clone for HostCallKind
Source§impl Debug for HostCallKind
impl Debug for HostCallKind
Source§impl PartialEq for HostCallKind
impl PartialEq for HostCallKind
impl StructuralPartialEq for HostCallKind
Auto Trait Implementations§
impl Forget for HostCallKind
impl Freeze for HostCallKind
impl Move for HostCallKind
impl RefUnwindSafe for HostCallKind
impl Send for HostCallKind
impl Sync for HostCallKind
impl Unpin for HostCallKind
impl UnsafeUnpin for HostCallKind
impl UnwindSafe for HostCallKind
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