pub struct ExecutionReport {
pub exit_code: i32,
pub duration: Duration,
pub stdout: String,
pub stderr: String,
pub files_created: Vec<PathBuf>,
pub files_modified: Vec<PathBuf>,
pub files_deleted: Vec<PathBuf>,
pub errors: Vec<RuntimeError>,
}Expand description
Report from runtime execution.
Fields§
§exit_code: i32Exit code from the runtime.
duration: DurationExecution duration.
stdout: StringCaptured stdout.
stderr: StringCaptured stderr.
files_created: Vec<PathBuf>Files created during execution.
files_modified: Vec<PathBuf>Files modified during execution.
files_deleted: Vec<PathBuf>Files deleted during execution.
errors: Vec<RuntimeError>Any errors that occurred.
Implementations§
Source§impl ExecutionReport
impl ExecutionReport
Sourcepub fn success(duration: Duration, stdout: String, stderr: String) -> Self
pub fn success(duration: Duration, stdout: String, stderr: String) -> Self
Creates a successful execution report.
Sourcepub fn failure(exit_code: i32, duration: Duration, error: RuntimeError) -> Self
pub fn failure(exit_code: i32, duration: Duration, error: RuntimeError) -> Self
Creates a failed execution report.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if execution succeeded (exit code 0, no errors).
Trait Implementations§
Source§impl Clone for ExecutionReport
impl Clone for ExecutionReport
Source§fn clone(&self) -> ExecutionReport
fn clone(&self) -> ExecutionReport
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutionReport
impl Debug for ExecutionReport
Source§impl<'de> Deserialize<'de> for ExecutionReport
impl<'de> Deserialize<'de> for ExecutionReport
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 ExecutionReport
impl RefUnwindSafe for ExecutionReport
impl Send for ExecutionReport
impl Sync for ExecutionReport
impl Unpin for ExecutionReport
impl UnwindSafe for ExecutionReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.