pub struct EvalResponse {
pub success: bool,
pub result: Option<String>,
pub error: Option<String>,
}Expand description
Response from JavaScript evaluation.
§JSON Format
Success:
{ "success": true, "result": "Page Title" }Error:
{ "success": false, "error": "ReferenceError: x is not defined" }Fields§
§success: boolWhether the evaluation succeeded.
result: Option<String>The result of the evaluation, if successful.
error: Option<String>The error message, if evaluation failed.
Implementations§
Trait Implementations§
Source§impl Clone for EvalResponse
impl Clone for EvalResponse
Source§fn clone(&self) -> EvalResponse
fn clone(&self) -> EvalResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 EvalResponse
impl Debug for EvalResponse
Auto Trait Implementations§
impl Freeze for EvalResponse
impl RefUnwindSafe for EvalResponse
impl Send for EvalResponse
impl Sync for EvalResponse
impl Unpin for EvalResponse
impl UnwindSafe for EvalResponse
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