Skip to main content

CallContext

Struct CallContext 

Source
pub struct CallContext {
Show 21 fields pub app: Option<String>, pub window: Option<String>, pub element: Option<u32>, pub diff: bool, pub full: bool, pub return_state: bool, pub include_screenshot: bool, pub coord: Option<String>, pub session: Option<String>, pub tier: Option<String>, pub adapter: Option<String>, pub display: Option<String>, pub require_visible: bool, pub policy: Option<String>, pub confirm_cmd: Option<String>, pub allow_foreground: bool, pub require_background: bool, pub no_overlay: bool, pub cdp: bool, pub cdp_url: Option<String>, pub browser_blocked_urls: Vec<String>,
}
Expand description

Flags shared by every action. JSON keys are removed before the action is decoded.

Fields§

§app: Option<String>

Target application: name, bundle id, or pid.

§window: Option<String>

Target window: title, z-order index, or id:<number>.

§element: Option<u32>

Element index in the current revision. Used from P3.

§diff: bool

Emit a tree diff when a baseline exists.

§full: bool

Replace the tree baseline with the full tree.

§return_state: bool

Attach post-action state. Used from P5.

§include_screenshot: bool

Attach a screenshot with post-action state. Used from P5.

§coord: Option<String>

Coordinate space name. Used from P5.

§session: Option<String>

Cache namespace. Defaults to the process id in later phases.

§tier: Option<String>

Input tier name. Used from P7.

§adapter: Option<String>

Adapter name. Used from P5.

§display: Option<String>

Display filter. Used from P14.

§require_visible: bool

Fail when the element is outside the window and scroll-into-view cannot run.

§policy: Option<String>

User policy file from --policy. Absent uses the default path.

§confirm_cmd: Option<String>

Confirm hook from --confirm-cmd. Wins over the environment and the policy file.

§allow_foreground: bool

Skip foreground.lock for tier activate.

§require_background: bool

Refuse tier activate, and treat cursor motion as failure.

§no_overlay: bool

Do not send the agent point to the overlay helper.

§cdp: bool

Route browser commands through CDP. The dispatcher refuses the request when this flag is off (invalid_arguments for the CLI, unsupported for the JSON path).

§cdp_url: Option<String>

Override the discovered CDP websocket URL. Wins over --app argv discovery. Accepts ws://, wss://, http://, https://.

§browser_blocked_urls: Vec<String>

Cached [browser].blocked_urls from the loaded policy. The dispatcher refuses the websocket connection (and the page activation) when the destination URL is in here.

Trait Implementations§

Source§

impl Clone for CallContext

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CallContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CallContext

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for CallContext

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CallContext

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> NoneValue for T
where T: Default,

Source§

type NoneType = T

Source§

fn null_value() -> T

The none-equivalent value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more