pub struct CommandFailure {
pub protocol_version: u32,
pub diagnostic: CommandDiagnostic,
pub clarifications: Vec<Clarification>,
}Expand description
Versioned portable command failure with optional clarification payload.
Fields§
§protocol_version: u32Protocol version used to encode the failure.
diagnostic: CommandDiagnosticStable human and machine-readable diagnostic.
clarifications: Vec<Clarification>Decisions requested from the caller, when applicable.
Trait Implementations§
Source§impl Clone for CommandFailure
impl Clone for CommandFailure
Source§impl Debug for CommandFailure
impl Debug for CommandFailure
Auto Trait Implementations§
impl Forget for CommandFailure
impl Freeze for CommandFailure
impl Move for CommandFailure
impl RefUnwindSafe for CommandFailure
impl Send for CommandFailure
impl Sync for CommandFailure
impl Unpin for CommandFailure
impl UnsafeUnpin for CommandFailure
impl UnwindSafe for CommandFailure
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