use super::AddressRef;
use crate::line::borrowed;
#[derive(Debug)]
pub enum Section<'input> {
BlankLine,
Comment(&'input str),
Global {
comment: Option<&'input str>,
lines: Vec<borrowed::Line<'input>>,
},
Default {
comment: Option<&'input str>,
proxy: Option<&'input str>,
lines: Vec<borrowed::Line<'input>>,
},
Frontend {
comment: Option<&'input str>,
proxy: &'input str,
lines: Vec<borrowed::Line<'input>>,
header_addr: Option<(AddressRef<'input>, Option<&'input str>)>,
},
Listen {
comment: Option<&'input str>,
proxy: &'input str,
lines: Vec<borrowed::Line<'input>>,
header_addr: Option<(AddressRef<'input>, Option<&'input str>)>,
},
Backend {
comment: Option<&'input str>,
proxy: &'input str,
lines: Vec<borrowed::Line<'input>>,
},
Userlist {
comment: Option<&'input str>,
name: &'input str,
lines: Vec<borrowed::Line<'input>>,
},
UnknownLine {
line: &'input str,
},
}