pub struct Request {
pub id: u32,
pub guid: Arc<str>,
pub method: String,
pub params: Value,
pub metadata: Metadata,
}Expand description
Protocol request message sent to Playwright server
Format matches Playwright’s JSON-RPC protocol:
{
"id": 42,
"guid": "page@3ee5e10621a15eaf80cb985dbccb9a28",
"method": "goto",
"params": {
"url": "https://example.com"
},
"metadata": {
"wallTime": 1699876543210,
"internal": false
}
}Fields§
§id: u32Unique request ID for correlating responses
guid: Arc<str>GUID of the target object (format: “type@hash”)
method: StringMethod name to invoke
params: ValueMethod parameters as JSON object
metadata: MetadataMetadata with timing and location information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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