pub struct SimpleOptions {
pub exact: Option<bool>,
}Expand description
Simple options struct for testing-library queries that only need exact matching.
This struct consolidates the common pattern used by text, alt_text, display_value, placeholder_text, test_id, and title options.
Fields§
§exact: Option<bool>Whether to use exact text matching
Implementations§
Trait Implementations§
Source§impl Clone for SimpleOptions
impl Clone for SimpleOptions
Source§fn clone(&self) -> SimpleOptions
fn clone(&self) -> SimpleOptions
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 SimpleOptions
impl Debug for SimpleOptions
Source§impl Default for SimpleOptions
impl Default for SimpleOptions
Source§fn default() -> SimpleOptions
fn default() -> SimpleOptions
Returns the “default value” for a type. Read more
Source§impl Serialize for SimpleOptions
impl Serialize for SimpleOptions
Auto Trait Implementations§
impl Freeze for SimpleOptions
impl RefUnwindSafe for SimpleOptions
impl Send for SimpleOptions
impl Sync for SimpleOptions
impl Unpin for SimpleOptions
impl UnsafeUnpin for SimpleOptions
impl UnwindSafe for SimpleOptions
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