cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! This domain is deprecated.
//!
//! Types, command parameters and event payloads for the `Schema`
//! domain. The method-name constants for the same domain are in
//! [`crate::methods`].
//!
//! This domain is deprecated in the protocol.

use serde::{Deserialize, Serialize};

/// Description of the protocol domain.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct Domain {
    /// Domain name.
    pub name: String,
    /// Domain version.
    pub version: String,
}

/// Returns supported domains.
///
/// Parameters of `Schema.getDomains`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct GetDomainsParams {}

/// What `Schema.getDomains` answers with.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct GetDomainsReturns {
    /// List of supported domains.
    pub domains: Vec<Domain>,
}

impl crate::typed::Command for GetDomainsParams {
    const METHOD: &'static str = "Schema.getDomains";
    type Returns = GetDomainsReturns;
}