pub enum Line<'input> {
Server {
name: &'input str,
addr: AddressRef<'input>,
option: Option<&'input str>,
comment: Option<&'input str>,
},
Option {
keyword: &'input str,
value: Option<&'input str>,
comment: Option<&'input str>,
},
Bind {
addr: AddressRef<'input>,
value: Option<&'input str>,
comment: Option<&'input str>,
},
Acl {
name: &'input str,
rule: Option<&'input str>,
comment: Option<&'input str>,
},
Backend {
name: &'input str,
modifier: Option<BackendModifier>,
condition: Option<&'input str>,
comment: Option<&'input str>,
},
Group {
name: &'input str,
users: Vec<&'input str>,
comment: Option<&'input str>,
},
User {
name: &'input str,
password: PasswordRef<'input>,
groups: Vec<&'input str>,
comment: Option<&'input str>,
},
SysUser {
name: &'input str,
},
Config {
key: &'input str,
value: Option<&'input str>,
comment: Option<&'input str>,
},
Comment(&'input str),
Blank,
}Variants§
Server
Fields
§
addr: AddressRef<'input>Option
Bind
Acl
Backend
Fields
§
modifier: Option<BackendModifier>Group
This usually refers to a haproxy user group however if it is in the global section of a config it is the systemuser haproxy will try to run as after starting up.
User
Fields
§
password: PasswordRef<'input>SysUser
A global paramater describing the system user haproxy should run as
Config
Comment(&'input str)
Blank
Trait Implementations§
Auto Trait Implementations§
impl<'input> Freeze for Line<'input>
impl<'input> RefUnwindSafe for Line<'input>
impl<'input> Send for Line<'input>
impl<'input> Sync for Line<'input>
impl<'input> Unpin for Line<'input>
impl<'input> UnwindSafe for Line<'input>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more