Enum haproxy_config::section::owned::Section
source · pub enum Section {
BlankLine,
Comment(String),
Global {
comment: Option<String>,
lines: Vec<Line>,
},
Default {
comment: Option<String>,
proxy: Option<String>,
lines: Vec<Line>,
},
Frontend {
comment: Option<String>,
proxy: String,
lines: Vec<Line>,
header_addr: Option<(Address, Option<String>)>,
},
Listen {
comment: Option<String>,
proxy: String,
lines: Vec<Line>,
header_addr: Option<(Address, Option<String>)>,
},
Backend {
comment: Option<String>,
proxy: String,
lines: Vec<Line>,
},
Userlist {
comment: Option<String>,
name: String,
lines: Vec<Line>,
},
UnknownLine {
line: String,
},
}Expand description
Represents a section in a config file.
Variants§
BlankLine
Comment(String)
Comment on a separate line not in a section
Global
Fields
The global section of a config.
Default
Fields
The lines in the default section of a config.