pub struct ActionOptions {
pub debug_url: Option<String>,
pub app: Option<String>,
pub app_pid: Option<i32>,
pub target_id: Option<String>,
pub url: Option<String>,
pub selector: Option<String>,
pub text: Option<String>,
pub script: Option<String>,
pub command_timeout: Duration,
pub policy_blocked_urls: Vec<String>,
pub policy_subject: Option<Subject>,
}Expand description
Argument set the action helpers receive (the browser subcommands route to it).
Fields§
§debug_url: Option<String>§app: Option<String>§app_pid: Option<i32>§target_id: Option<String>§url: Option<String>§selector: Option<String>§text: Option<String>§script: Option<String>§command_timeout: Duration§policy_blocked_urls: Vec<String>Cached policy [browser].blocked_urls. The dispatcher passes these in
so the cdp helpers do not need to read the policy file themselves.
policy_subject: Option<Subject>Policy subject the dispatcher resolved. Currently unused by the CDP helpers (the URL check is enough), but recorded for future expansion.
Trait Implementations§
Source§impl Clone for ActionOptions
impl Clone for ActionOptions
Source§impl Debug for ActionOptions
impl Debug for ActionOptions
Auto Trait Implementations§
impl Freeze for ActionOptions
impl RefUnwindSafe for ActionOptions
impl Send for ActionOptions
impl Sync for ActionOptions
impl Unpin for ActionOptions
impl UnsafeUnpin for ActionOptions
impl UnwindSafe for ActionOptions
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