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
#[derive(Debug, Clone, Copy)]
pub struct StaticOptions {
    pub(crate) etag: bool,
    pub(crate) modified: bool,
}

impl StaticOptions {
    pub fn without_etag(mut self) -> Self {
        self.etag = false;
        self
    }

    pub fn without_modified(mut self) -> Self {
        self.modified = false;
        self
    }
}

impl Default for StaticOptions {
    fn default() -> Self {
        Self {
            etag: true,
            modified: true,
        }
    }
}