aboutsummaryrefslogtreecommitdiff
path: root/src/response/configuration.rs
blob: 45afcaacb35c04d7227f9d07c6a95b16abd890e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#[derive(Default)]
pub struct Configuration {
  is_proxy:  bool,
  is_raw:    bool,
  is_no_css: bool,
}

impl Configuration {
  pub const fn new() -> Self {
    Self { is_proxy: false, is_raw: false, is_no_css: false }
  }

  pub const fn is_proxy(&self) -> bool { self.is_proxy }

  pub const fn is_raw(&self) -> bool { self.is_raw }

  pub const fn is_no_css(&self) -> bool { self.is_no_css }

  pub const fn set_proxy(&mut self, is_proxy: bool) {
    self.is_proxy = is_proxy;
  }

  pub const fn set_raw(&mut self, is_raw: bool) { self.is_raw = is_raw; }

  pub const fn set_no_css(&mut self, is_no_css: bool) {
    self.is_no_css = is_no_css;
  }
}