pub struct StepResult {
pub uuid: Option<String>,
pub name: String,
pub status: Status,
pub status_details: Option<StatusDetails>,
pub stage: Stage,
pub steps: Vec<StepResult>,
pub attachments: Vec<Attachment>,
pub parameters: Vec<Parameter>,
pub start: i64,
pub stop: i64,
}Expand description
Step result within a test.
Fields§
§uuid: Option<String>Optional UUID for the step
name: StringStep name (display title)
status: StatusStep status
status_details: Option<StatusDetails>Additional status details
stage: StageStep execution stage
steps: Vec<StepResult>Nested steps
attachments: Vec<Attachment>Step attachments
parameters: Vec<Parameter>Step parameters
start: i64Step start time (Unix timestamp in milliseconds)
stop: i64Step stop time (Unix timestamp in milliseconds)
Implementations§
Source§impl StepResult
impl StepResult
Sourcepub fn new(name: impl Into<String>) -> StepResult
pub fn new(name: impl Into<String>) -> StepResult
Creates a new step with the given name.
Sourcepub fn add_step(&mut self, step: StepResult)
pub fn add_step(&mut self, step: StepResult)
Adds a nested step.
Sourcepub fn add_attachment(&mut self, attachment: Attachment)
pub fn add_attachment(&mut self, attachment: Attachment)
Adds an attachment to the step.
Sourcepub fn add_parameter(
&mut self,
name: impl Into<String>,
value: impl Into<String>,
)
pub fn add_parameter( &mut self, name: impl Into<String>, value: impl Into<String>, )
Adds a parameter to the step.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepResult
impl Debug for StepResult
Source§impl<'de> Deserialize<'de> for StepResult
impl<'de> Deserialize<'de> for StepResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StepResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StepResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StepResult
impl PartialEq for StepResult
Source§impl Serialize for StepResult
impl Serialize for StepResult
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
impl Eq for StepResult
impl StructuralPartialEq for StepResult
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnwindSafe for StepResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)