pub struct ActionResult {
pub success: bool,
pub value: Option<Value>,
pub error: Option<String>,
}Expand description
Outcome of BrowserAgent::execute. Errors are captured as strings rather than
propagated so a batch of actions (BrowserAgent::execute_many) can run to
completion and report per-action success/failure.
Fields§
§success: boolWhether the action completed without error.
value: Option<Value>The action’s return value, when it produces one and succeeded.
error: Option<String>The error message, when success is false.
Implementations§
Source§impl ActionResult
impl ActionResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Shorthand for self.success.
Trait Implementations§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§impl Debug for ActionResult
impl Debug for ActionResult
Auto Trait Implementations§
impl Forget for ActionResult
impl Freeze for ActionResult
impl RefUnwindSafe for ActionResult
impl Send for ActionResult
impl Sync for ActionResult
impl Unpin for ActionResult
impl UnsafeUnpin for ActionResult
impl UnwindSafe for ActionResult
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