#[non_exhaustive]pub struct ElementQueryOptions { /* private fields */ }
Expand description
All options applicable to an ElementQuery.
These are stored in a separate struct so that they can be constructed separately and applied to an ElementQuery in bulk if required.
Implementations§
Source§impl ElementQueryOptions
impl ElementQueryOptions
Sourcepub fn ignore_errors(self, ignore_errors: bool) -> Self
pub fn ignore_errors(self, ignore_errors: bool) -> Self
Set whether to ignore errors when querying elements.
Sourcepub fn set_ignore_errors(self, ignore_errors: Option<bool>) -> Self
pub fn set_ignore_errors(self, ignore_errors: Option<bool>) -> Self
Set whether to ignore errors when querying elements.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description to be used in error messages for this element query.
Sourcepub fn set_description<T: Into<String>>(self, description: Option<T>) -> Self
pub fn set_description<T: Into<String>>(self, description: Option<T>) -> Self
Set the description to be used in error messages for this element query.
Sourcepub fn wait(self, wait_option: ElementQueryWaitOptions) -> Self
pub fn wait(self, wait_option: ElementQueryWaitOptions) -> Self
Set the wait options for this element query.
Sourcepub fn set_wait(self, wait_option: Option<ElementQueryWaitOptions>) -> Self
pub fn set_wait(self, wait_option: Option<ElementQueryWaitOptions>) -> Self
Set the wait options for this element query.
Trait Implementations§
Source§impl Clone for ElementQueryOptions
impl Clone for ElementQueryOptions
Source§fn clone(&self) -> ElementQueryOptions
fn clone(&self) -> ElementQueryOptions
Returns a copy of the value. Read more
1.0.0 · 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 ElementQueryOptions
impl Debug for ElementQueryOptions
Source§impl Default for ElementQueryOptions
impl Default for ElementQueryOptions
Source§fn default() -> ElementQueryOptions
fn default() -> ElementQueryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ElementQueryOptions
impl RefUnwindSafe for ElementQueryOptions
impl Send for ElementQueryOptions
impl Sync for ElementQueryOptions
impl Unpin for ElementQueryOptions
impl UnwindSafe for ElementQueryOptions
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