pub enum ConfigItem {
Directive(Box<Directive>),
Comment(Comment),
BlankLine(BlankLine),
}Expand description
An item in the configuration (directive, comment, or blank line).
Variants§
Directive(Box<Directive>)
A directive, possibly with a block (e.g. listen 80; or server { … }).
Comment(Comment)
A comment line (# …).
BlankLine(BlankLine)
A blank line (may contain only whitespace).
Trait Implementations§
Source§impl Clone for ConfigItem
impl Clone for ConfigItem
Source§fn clone(&self) -> ConfigItem
fn clone(&self) -> ConfigItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigItem
impl Debug for ConfigItem
Source§impl<'de> Deserialize<'de> for ConfigItem
impl<'de> Deserialize<'de> for ConfigItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConfigItem
impl Serialize for ConfigItem
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigItem
impl RefUnwindSafe for ConfigItem
impl Send for ConfigItem
impl Sync for ConfigItem
impl Unpin for ConfigItem
impl UnsafeUnpin for ConfigItem
impl UnwindSafe for ConfigItem
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