pub struct CaptureRequest {
pub binding: CaptureBinding,
pub url: String,
pub viewport: (u32, u32),
pub output_root: PathBuf,
pub deadline: Duration,
pub network: NetworkPolicy,
pub chrome_path: Option<PathBuf>,
pub axe: Option<AxeSpec>,
}Expand description
One capture of one URL.
Fields§
§binding: CaptureBinding§url: Stringhttp or https URL of the real page.
viewport: (u32, u32)Viewport in CSS pixels, each edge 1 to MAX_CAPTURE_VIEWPORT_EDGE.
output_root: PathBufExisting absolute directory; the capture writes a private rk-capture-* directory in it.
deadline: DurationBudget for the whole load and observation run (1 s to MAX_CAPTURE_DEADLINE). Launch
has its own bound; cleanup always runs.
network: NetworkPolicyNetwork policy of the capture session. The default refuses loopback and private addresses; allow a dev server’s host explicitly.
chrome_path: Option<PathBuf>Explicit browser executable; None resolves Chrome for Testing as a session does.
axe: Option<AxeSpec>Run axe-core with these tags; needs feature axe.
Implementations§
Trait Implementations§
Source§impl Clone for CaptureRequest
impl Clone for CaptureRequest
Auto Trait Implementations§
impl !RefUnwindSafe for CaptureRequest
impl !UnwindSafe for CaptureRequest
impl Freeze for CaptureRequest
impl Send for CaptureRequest
impl Sync for CaptureRequest
impl Unpin for CaptureRequest
impl UnsafeUnpin for CaptureRequest
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