Enum nginx_config::ast::Item [−][src]
pub enum Item { Daemon(bool), MasterProcess(bool), WorkerProcesses(WorkerProcesses), Http(Http), Server(Server), Location(Location), Listen(Listen), ProxyPass(Value), ProxySetHeader { field: Value, value: Value, }, Gzip(bool), GzipStatic(GzipStatic), GzipProxied(Vec<GzipProxied>), AddHeader(AddHeader), Expires(Expires), Root(Value), Alias(Value), ErrorPage(ErrorPage), Rewrite(Rewrite), Return(Return), If(If), TryFiles(TryFiles), ServerName(Vec<ServerName>), Set { variable: String, value: Value, }, Map(Map), ClientMaxBodySize(Value), Include(Value), EmptyGif, Internal, SslCertificate(Value), SslCertificateKey(Value), RewriteByLuaFile(Value), BalancerByLuaFile(Value), AccessByLuaFile(Value), HeaderFilterByLuaFile(Value), ContentByLuaFile(Value), BodyFilterByLuaFile(Value), LogByLuaFile(Value), LuaNeedRequestBody(Value), SslCertificateByLuaFile(Value), SslSessionFetchByLuaFile(Value), SslSessionStoreByLuaFile(Value), }
The enum which represents nginx config directive
Variants
Daemon(bool)
MasterProcess(bool)
WorkerProcesses(WorkerProcesses)
Http(Http)
Server(Server)
Location(Location)
Listen(Listen)
ProxyPass(Value)
ProxySetHeader
Fields of ProxySetHeader
field: Value | |
value: Value |
Gzip(bool)
GzipStatic(GzipStatic)
GzipProxied(Vec<GzipProxied>)
AddHeader(AddHeader)
Expires(Expires)
Root(Value)
Alias(Value)
ErrorPage(ErrorPage)
Rewrite(Rewrite)
Return(Return)
If(If)
TryFiles(TryFiles)
ServerName(Vec<ServerName>)
Set
Fields of Set
variable: String | |
value: Value |
Map(Map)
ClientMaxBodySize(Value)
Include(Value)
EmptyGif
Internal
SslCertificate(Value)
SslCertificateKey(Value)
RewriteByLuaFile(Value)
BalancerByLuaFile(Value)
AccessByLuaFile(Value)
HeaderFilterByLuaFile(Value)
ContentByLuaFile(Value)
BodyFilterByLuaFile(Value)
LogByLuaFile(Value)
LuaNeedRequestBody(Value)
SslCertificateByLuaFile(Value)
SslSessionFetchByLuaFile(Value)
SslSessionStoreByLuaFile(Value)
Methods
impl Item
[src]
impl Item
pub fn directive_name(&self) -> &'static str
[src]
pub fn directive_name(&self) -> &'static str
pub fn children(&self) -> Option<&[Directive]>
[src]
pub fn children(&self) -> Option<&[Directive]>
pub fn children_mut(&mut self) -> Option<&mut Vec<Directive>>
[src]
pub fn children_mut(&mut self) -> Option<&mut Vec<Directive>>
Trait Implementations
impl Debug for Item
[src]
impl Debug for Item
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Item
[src]
impl Clone for Item
fn clone(&self) -> Item
[src]
fn clone(&self) -> Item
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Item
[src]
impl PartialEq for Item
fn eq(&self, other: &Item) -> bool
[src]
fn eq(&self, other: &Item) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Item) -> bool
[src]
fn ne(&self, other: &Item) -> bool
This method tests for !=
.
impl Eq for Item
[src]
impl Eq for Item
impl Display for Item
[src]
impl Display for Item