pub struct ExpectContext {
pub method: &'static str,
pub subject: String,
pub is_not: bool,
}Expand description
Context for an expect assertion — used to build Playwright-style error messages.
Fields§
§method: &'static stre.g. "toHaveText", "toBeVisible".
subject: Stringe.g. "locator('h1')", "page".
is_not: boolWhether this is a negated assertion (.not).
Trait Implementations§
Source§impl Clone for ExpectContext
impl Clone for ExpectContext
Source§fn clone(&self) -> ExpectContext
fn clone(&self) -> ExpectContext
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 ExpectContext
impl RefUnwindSafe for ExpectContext
impl Send for ExpectContext
impl Sync for ExpectContext
impl Unpin for ExpectContext
impl UnsafeUnpin for ExpectContext
impl UnwindSafe for ExpectContext
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