pub enum NginxElementType {
Root,
Directive,
Block,
Parameter,
Value,
Comment,
Error,
}Expand description
Element types for Nginx configuration.
Variants§
Root
The root of the configuration.
Directive
A configuration directive.
Block
A configuration block.
Parameter
A parameter within a directive.
Value
A value within a directive or parameter.
Comment
A comment.
Error
An error element.
Implementations§
Trait Implementations§
Source§impl Clone for NginxElementType
impl Clone for NginxElementType
Source§fn clone(&self) -> NginxElementType
fn clone(&self) -> NginxElementType
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 NginxElementType
impl Debug for NginxElementType
Source§impl<'de> Deserialize<'de> for NginxElementType
impl<'de> Deserialize<'de> for NginxElementType
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
Source§impl ElementType for NginxElementType
impl ElementType for NginxElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<NginxTokenType> for NginxElementType
impl From<NginxTokenType> for NginxElementType
Source§fn from(token: NginxTokenType) -> Self
fn from(token: NginxTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for NginxElementType
impl Hash for NginxElementType
Source§impl PartialEq for NginxElementType
impl PartialEq for NginxElementType
Source§impl Serialize for NginxElementType
impl Serialize for NginxElementType
impl Copy for NginxElementType
impl Eq for NginxElementType
impl StructuralPartialEq for NginxElementType
Auto Trait Implementations§
impl Freeze for NginxElementType
impl RefUnwindSafe for NginxElementType
impl Send for NginxElementType
impl Sync for NginxElementType
impl Unpin for NginxElementType
impl UnsafeUnpin for NginxElementType
impl UnwindSafe for NginxElementType
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