#[non_exhaustive]pub struct RouteFromHarOptions {
pub update: Option<bool>,
pub url: Option<String>,
pub url_match_case_insensitive: Option<bool>,
}Expand description
Options for route_from_har, mirroring Playwright’s
RouteFromHarOptions.
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.update: Option<bool>If Some(true), do not fulfill from the HAR — instead let requests hit
the network and (eventually) update the HAR. Recording is not yet wired,
so when update is true the routes still fall through to the network but
the file is not rewritten. See the report notes.
url: Option<String>If set, only register HAR entries whose URL matches this glob; entries that do not match are ignored (their requests fall through to network).
url_match_case_insensitive: Option<bool>If Some(true), match requests case-insensitively on the URL. Defaults
to false (Playwright matches the recorded URL literally).
Implementations§
Trait Implementations§
Source§impl Clone for RouteFromHarOptions
impl Clone for RouteFromHarOptions
Source§fn clone(&self) -> RouteFromHarOptions
fn clone(&self) -> RouteFromHarOptions
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 RouteFromHarOptions
impl Debug for RouteFromHarOptions
Source§impl Default for RouteFromHarOptions
impl Default for RouteFromHarOptions
Source§fn default() -> RouteFromHarOptions
fn default() -> RouteFromHarOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RouteFromHarOptions
impl RefUnwindSafe for RouteFromHarOptions
impl Send for RouteFromHarOptions
impl Sync for RouteFromHarOptions
impl Unpin for RouteFromHarOptions
impl UnsafeUnpin for RouteFromHarOptions
impl UnwindSafe for RouteFromHarOptions
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