pub enum NginxItem {
Directive(Directive),
Block(Block),
Comment(Comment),
}Expand description
Represents an item in the Nginx configuration.
Variants§
Directive(Directive)
A simple directive (e.g., user nginx;).
Block(Block)
A block directive (e.g., http { ... }).
Comment(Comment)
A comment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NginxItem
impl<'de> Deserialize<'de> for NginxItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NginxItem
impl RefUnwindSafe for NginxItem
impl Send for NginxItem
impl Sync for NginxItem
impl Unpin for NginxItem
impl UnsafeUnpin for NginxItem
impl UnwindSafe for NginxItem
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