Skip to main content

rustenium_cdp_definitions/browser_protocol/media/
command_builders.rs

1use super::commands::*;
2#[derive(Debug, Clone, Default)]
3pub struct EnableBuilder;
4impl EnableBuilder {
5    pub fn new() -> Self {
6        Self
7    }
8    pub fn build(self) -> Enable {
9        Enable {
10            method: EnableMethod::Enable,
11            params: EnableParams {},
12        }
13    }
14}
15impl Enable {
16    pub fn builder() -> EnableBuilder {
17        EnableBuilder
18    }
19}
20#[derive(Debug, Clone, Default)]
21pub struct DisableBuilder;
22impl DisableBuilder {
23    pub fn new() -> Self {
24        Self
25    }
26    pub fn build(self) -> Disable {
27        Disable {
28            method: DisableMethod::Disable,
29            params: DisableParams {},
30        }
31    }
32}
33impl Disable {
34    pub fn builder() -> DisableBuilder {
35        DisableBuilder
36    }
37}