pub enum ConfiguredHookHandler {
Command {
async_: bool,
command: String,
command_windows: Option<String>,
status_message: Option<String>,
timeout_sec: Option<u64>,
},
Prompt,
Agent,
}Expand description
ConfiguredHookHandler
JSON schema
{
"oneOf": [
{
"title": "CommandConfiguredHookHandler",
"type": "object",
"required": [
"async",
"command",
"type"
],
"properties": {
"async": {
"type": "boolean"
},
"command": {
"type": "string"
},
"commandWindows": {
"type": [
"string",
"null"
]
},
"statusMessage": {
"type": [
"string",
"null"
]
},
"timeoutSec": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"type": {
"title": "CommandConfiguredHookHandlerType",
"type": "string",
"enum": [
"command"
]
}
}
},
{
"title": "PromptConfiguredHookHandler",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "PromptConfiguredHookHandlerType",
"type": "string",
"enum": [
"prompt"
]
}
}
},
{
"title": "AgentConfiguredHookHandler",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "AgentConfiguredHookHandlerType",
"type": "string",
"enum": [
"agent"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ConfiguredHookHandler
impl Clone for ConfiguredHookHandler
Source§fn clone(&self) -> ConfiguredHookHandler
fn clone(&self) -> ConfiguredHookHandler
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 ConfiguredHookHandler
impl Debug for ConfiguredHookHandler
Source§impl<'de> Deserialize<'de> for ConfiguredHookHandler
impl<'de> Deserialize<'de> for ConfiguredHookHandler
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
Auto Trait Implementations§
impl Freeze for ConfiguredHookHandler
impl RefUnwindSafe for ConfiguredHookHandler
impl Send for ConfiguredHookHandler
impl Sync for ConfiguredHookHandler
impl Unpin for ConfiguredHookHandler
impl UnsafeUnpin for ConfiguredHookHandler
impl UnwindSafe for ConfiguredHookHandler
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