pub struct QueryOutcome {
pub success: bool,
pub output: Option<String>,
pub error: Option<String>,
pub exit_code: Option<i32>,
}Expand description
Uniform shape every query handler reports back.
Fields§
§success: bool§output: Option<String>§error: Option<String>§exit_code: Option<i32>Trait Implementations§
Source§impl From<ExecutionAttachResult> for QueryOutcome
impl From<ExecutionAttachResult> for QueryOutcome
Source§fn from(result: ExecutionAttachResult) -> Self
fn from(result: ExecutionAttachResult) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionControlResult> for QueryOutcome
impl From<ExecutionControlResult> for QueryOutcome
Source§fn from(result: ExecutionControlResult) -> Self
fn from(result: ExecutionControlResult) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionResumeAllResult> for QueryOutcome
impl From<ExecutionResumeAllResult> for QueryOutcome
Source§fn from(result: ExecutionResumeAllResult) -> Self
fn from(result: ExecutionResumeAllResult) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionResumeResult> for QueryOutcome
impl From<ExecutionResumeResult> for QueryOutcome
Source§fn from(result: ExecutionResumeResult) -> Self
fn from(result: ExecutionResumeResult) -> Self
Converts to this type from the input type.
Source§impl From<StatusQueryResult> for QueryOutcome
impl From<StatusQueryResult> for QueryOutcome
Source§fn from(result: StatusQueryResult) -> Self
fn from(result: StatusQueryResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryOutcome
impl RefUnwindSafe for QueryOutcome
impl Send for QueryOutcome
impl Sync for QueryOutcome
impl Unpin for QueryOutcome
impl UnsafeUnpin for QueryOutcome
impl UnwindSafe for QueryOutcome
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