Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_text/tests/lint_mutable/skip_default.rs

519 bytes, 1 run

created by r1870400018:75259, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1#[derive(Clone, Debug, Eq, PartialEq, FromDatMap, ToDatMap)]
2pub struct NetConfig {
3 pub host: String,
4 pub timeout: u64,
5}
6
7impl Default for NetConfig {
8 fn default() -> Self {
9 Self {
10 host: "https://api.example.com".to_string(),
11 timeout: Duration::from_secs(30).as_secs(),
12 }
13 }
14}
15
16pub struct Plain {
17 pub host: String,
18}
19
20impl Default for Plain {
21 fn default() -> Self {
22 Self { host: "https://plain.example.com".to_string() }
23 }
24}