pub struct ActionResponse {
pub stdout: String,
pub stderr: String,
pub returncode: i32,
}Fields§
§stdout: String§stderr: String§returncode: i32Implementations§
Source§impl ActionResponse
impl ActionResponse
pub const fn success(output: String) -> ActionResponse
pub const fn error(message: String) -> ActionResponse
Trait Implementations§
Source§impl Debug for ActionResponse
impl Debug for ActionResponse
Source§impl Serialize for ActionResponse
impl Serialize for ActionResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ActionResponse
impl RefUnwindSafe for ActionResponse
impl Send for ActionResponse
impl Sync for ActionResponse
impl Unpin for ActionResponse
impl UnsafeUnpin for ActionResponse
impl UnwindSafe for ActionResponse
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