pub struct RunReportInput { /* private fields */ }Expand description
Construction input for a validated RunReport.
Implementations§
Source§impl RunReportInput
impl RunReportInput
Sourcepub fn new(
status: RunStatus,
stop_reason: RunStopReason,
target: impl Into<String>,
authorized_origin: impl Into<String>,
started_at: DateTime<Utc>,
completed_at: DateTime<Utc>,
) -> Result<RunReportInput, RunReportError>
pub fn new( status: RunStatus, stop_reason: RunStopReason, target: impl Into<String>, authorized_origin: impl Into<String>, started_at: DateTime<Utc>, completed_at: DateTime<Utc>, ) -> Result<RunReportInput, RunReportError>
Creates the required run envelope with explicit unmetered accounting.
Sourcepub fn with_accounting(self, accounting: RunAccounting) -> RunReportInput
pub fn with_accounting(self, accounting: RunAccounting) -> RunReportInput
Replaces resource accounting with the host’s explicit measurements.
Sourcepub fn with_steps(self, steps: Vec<RunStepReport>) -> RunReportInput
pub fn with_steps(self, steps: Vec<RunStepReport>) -> RunReportInput
Attaches attempted steps in execution order.
Sourcepub fn with_outcomes(self, outcomes: Vec<RunOutcomeRecord>) -> RunReportInput
pub fn with_outcomes(self, outcomes: Vec<RunOutcomeRecord>) -> RunReportInput
Attaches projected outcomes and unresolved observations.
Trait Implementations§
Source§impl Clone for RunReportInput
impl Clone for RunReportInput
Source§fn clone(&self) -> RunReportInput
fn clone(&self) -> RunReportInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RunReportInput
impl RefUnwindSafe for RunReportInput
impl Send for RunReportInput
impl Sync for RunReportInput
impl Unpin for RunReportInput
impl UnsafeUnpin for RunReportInput
impl UnwindSafe for RunReportInput
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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