#[non_exhaustive]pub struct StepFailure {
pub step_index: Option<u64>,
pub action: Option<String>,
pub reason: Option<String>,
pub selector: Option<String>,
pub html: Option<String>,
pub xhr: Option<Vec<XhrCall>>,
}Expand description
Details of a browser step that could not run.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.step_index: Option<u64>Zero-based index of the step that failed.
action: Option<String>The failed step’s action, e.g. "click".
reason: Option<String>Why it failed.
selector: Option<String>The selector the step acted on, if any.
html: Option<String>The page HTML at the moment the step failed.
xhr: Option<Vec<XhrCall>>With Client::get_page_with_xhr:
the responses the page received before the step failed; otherwise None.
Trait Implementations§
Source§impl Clone for StepFailure
impl Clone for StepFailure
Auto Trait Implementations§
impl Forget for StepFailure
impl Freeze for StepFailure
impl Move for StepFailure
impl RefUnwindSafe for StepFailure
impl Send for StepFailure
impl Sync for StepFailure
impl Unpin for StepFailure
impl UnsafeUnpin for StepFailure
impl UnwindSafe for StepFailure
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