pub struct EntryResult {
pub entry_index: Index,
pub source_info: SourceInfo,
pub calls: Vec<Call>,
pub captures: Vec<CaptureResult>,
pub asserts: Vec<AssertResult>,
pub errors: Vec<RunnerError>,
pub transfer_duration: Duration,
pub compressed: bool,
pub curl_cmd: CurlCmd,
}Expand description
Represents the execution result of an entry.
Fields§
§entry_index: IndexIndex of the entry on the file execution.
source_info: SourceInfoSource information of this entry.
calls: Vec<Call>List of HTTP request / response pair.
captures: Vec<CaptureResult>List of captures.
asserts: Vec<AssertResult>List of asserts.
errors: Vec<RunnerError>List of errors.
transfer_duration: DurationEffective duration of all the HTTP transfers, excluding asserts and captures processing.
compressed: boolThe entry has been executed with --compressed option:
server is requested to send compressed response, and the response should be uncompressed
when outputted on stdout.
curl_cmd: CurlCmdThe debug curl command line from this entry result.
Implementations§
Source§impl EntryResult
impl EntryResult
Sourcepub fn write_response(
&self,
output: &Output,
context_dir: &ContextDir,
stdout: &mut Stdout,
source_info: SourceInfo,
) -> Result<(), RunnerError>
pub fn write_response( &self, output: &Output, context_dir: &ContextDir, stdout: &mut Stdout, source_info: SourceInfo, ) -> Result<(), RunnerError>
Writes the last HTTP response of this entry result to this output.
The HTTP response can be decompressed if the entry’s compressed option has been set.
This method checks if the response has write access to this output, given a context_dir.
Trait Implementations§
Source§impl Clone for EntryResult
impl Clone for EntryResult
Source§fn clone(&self) -> EntryResult
fn clone(&self) -> EntryResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more