pub enum ExitValidationError {
EmptyResult {
hint: String,
},
InvalidJson {
detail: String,
},
SchemaViolations {
errors: Vec<String>,
},
}Expand description
Reason a zag ps kill invocation was rejected. The CLI prints the
Display impl to stderr; the agent is expected to read the message
and self-correct.
Variants§
EmptyResult
The session was launched with a non-empty --exit hint but the
kill was called with an empty (or missing) result.
InvalidJson
--json was set but the result is not valid JSON.
SchemaViolations
--json-schema was set and the result failed schema validation.
Trait Implementations§
Source§impl Debug for ExitValidationError
impl Debug for ExitValidationError
Source§impl Display for ExitValidationError
impl Display for ExitValidationError
Source§impl Error for ExitValidationError
impl Error for ExitValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ExitValidationError
impl RefUnwindSafe for ExitValidationError
impl Send for ExitValidationError
impl Sync for ExitValidationError
impl Unpin for ExitValidationError
impl UnsafeUnpin for ExitValidationError
impl UnwindSafe for ExitValidationError
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