♻️ Simple & Efficient Gemini-to-HTTP Proxy
fuwn.net
proxy
gemini-protocol
protocol
gemini
http
rust
1#[derive(Default)]
2pub struct Configuration {
3 is_proxy: bool,
4 is_raw: bool,
5 is_no_css: bool,
6}
7
8impl Configuration {
9 pub const fn new() -> Self {
10 Self { is_proxy: false, is_raw: false, is_no_css: false }
11 }
12
13 pub const fn is_proxy(&self) -> bool { self.is_proxy }
14
15 pub const fn is_raw(&self) -> bool { self.is_raw }
16
17 pub const fn is_no_css(&self) -> bool { self.is_no_css }
18
19 pub const fn set_proxy(&mut self, is_proxy: bool) {
20 self.is_proxy = is_proxy;
21 }
22
23 pub const fn set_raw(&mut self, is_raw: bool) { self.is_raw = is_raw; }
24
25 pub const fn set_no_css(&mut self, is_no_css: bool) {
26 self.is_no_css = is_no_css;
27 }
28}