Skip to main content

rustenium_bidi_definitions/log/
events.rs

1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct EntryAddedParams {}
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub enum EntryAddedMethod {
6    #[serde(rename = "log.entryAdded")]
7    EntryAdded,
8}
9#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
10pub struct EntryAdded {
11    pub method: EntryAddedMethod,
12    pub params: EntryAddedParams,
13}
14impl EntryAdded {
15    pub const IDENTIFIER: &'static str = "log.entryAdded";
16    pub const DOMAIN_DIRECTION: &'static str = "local";
17    pub fn identifier(&self) -> &'static str {
18        Self::IDENTIFIER
19    }
20}
21group_enum ! (LogEvent { EntryAdded (EntryAdded) } + identifiable);