pub struct InspectParams {
pub action: InspectAction,
pub ref_id: Option<String>,
pub ref_ids: Option<Vec<String>>,
pub properties: Option<Vec<String>>,
pub color: Option<String>,
pub label: Option<String>,
pub webview_label: Option<String>,
}Expand description
Parameters for the compound inspect tool (styles, bounding boxes, highlight, a11y, perf).
Fields§
§action: InspectActionAction to perform: get_styles, get_bounding_boxes, highlight, clear_highlights, audit_accessibility, get_performance.
ref_id: Option<String>Ref handle ID (for get_styles, highlight).
ref_ids: Option<Vec<String>>List of ref handle IDs (for get_bounding_boxes).
properties: Option<Vec<String>>CSS property names to return (for get_styles — if omitted, returns key properties).
color: Option<String>CSS color for the highlight overlay (for highlight, default: “rgba(255, 0, 0, 0.3)”).
label: Option<String>Text label displayed above the highlight (for highlight).
webview_label: Option<String>Target webview label.
Trait Implementations§
Source§impl Debug for InspectParams
impl Debug for InspectParams
Source§impl<'de> Deserialize<'de> for InspectParams
impl<'de> Deserialize<'de> for InspectParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for InspectParams
impl JsonSchema for InspectParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for InspectParams
impl RefUnwindSafe for InspectParams
impl Send for InspectParams
impl Sync for InspectParams
impl Unpin for InspectParams
impl UnsafeUnpin for InspectParams
impl UnwindSafe for InspectParams
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