pub struct Event {
pub guid: Arc<str>,
pub method: String,
pub params: Value,
}Expand description
Protocol event message from Playwright server
Events are distinguished from responses by the absence of an id field:
{
"guid": "page@3ee5e10621a15eaf80cb985dbccb9a28",
"method": "console",
"params": {
"message": { "type": "log", "text": "Hello world" }
}
}Fields§
§guid: Arc<str>GUID of the object that emitted the event
method: StringEvent method name
params: ValueEvent parameters as JSON object
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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