pub struct CaptureReport { /* private fields */ }Expand description
Every entry of one request’s capture block, evaluated against its
response, in sorted-name order.
The default is the empty report, which is what a request with no capture
block produces: nothing captured, nothing failed, and nothing printed.
Implementations§
Source§impl CaptureReport
impl CaptureReport
pub fn results(&self) -> &[CaptureResult]
pub fn len(&self) -> usize
Sourcepub fn passed(&self) -> bool
pub fn passed(&self) -> bool
Every entry produced a value (vacuously true when there are none).
pub fn captured_count(&self) -> usize
pub fn failed_count(&self) -> usize
Sourcepub fn failures(&self) -> impl Iterator<Item = &CaptureResult>
pub fn failures(&self) -> impl Iterator<Item = &CaptureResult>
Just the entries that produced no value, in evaluation order.
Sourcepub fn values(&self) -> BTreeMap<String, String>
pub fn values(&self) -> BTreeMap<String, String>
The name-to-value pairs this request contributes to the run.
Only the entries that succeeded: a failed capture defines nothing, which
is what makes the downstream {{name}} a VariableNotFound naming the
variable rather than a request sent with an empty string in it.
Trait Implementations§
Source§impl Clone for CaptureReport
impl Clone for CaptureReport
Source§fn clone(&self) -> CaptureReport
fn clone(&self) -> CaptureReport
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 moreSource§impl Debug for CaptureReport
impl Debug for CaptureReport
Source§impl Default for CaptureReport
impl Default for CaptureReport
Source§fn default() -> CaptureReport
fn default() -> CaptureReport
Returns the “default value” for a type. Read more
impl Eq for CaptureReport
Source§impl PartialEq for CaptureReport
impl PartialEq for CaptureReport
impl StructuralPartialEq for CaptureReport
Auto Trait Implementations§
impl Freeze for CaptureReport
impl RefUnwindSafe for CaptureReport
impl Send for CaptureReport
impl Sync for CaptureReport
impl Unpin for CaptureReport
impl UnsafeUnpin for CaptureReport
impl UnwindSafe for CaptureReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.