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,
},
ProxyMethod(Value),
ProxyReadTimeout(Value),
ProxyConnectTimeout(Value),
ProxyHideHeader(Value),
ProxyPassHeader(Value),
ProxyPassRequestBody(bool),
ProxyPassRequestHeaders(bool),
ProxyHttpVersion(ProxyHttpVersion),
ProxyIgnoreHeaders(Vec<String>),
ProxyInterceptErrors(bool),
ProxyBuffering(bool),
ProxyCache(Value),
ProxyCacheKey(Value),
ProxyCacheValid(ProxyCacheValid),
ProxyNextUpstreamTries(Value),
ProxyNextUpstreamTimeout(Value),
ProxyNextUpstream(Vec<ProxyNextUpstreamFlag>),
Gzip(bool),
GzipStatic(GzipStatic),
GzipProxied(Vec<GzipProxied>),
AddHeader(AddHeader),
Expires(Expires),
Root(Value),
Alias(Value),
ErrorPage(ErrorPage),
DefaultType(Value),
ErrorLog {
file: Value,
level: Option<ErrorLevel>,
},
Rewrite(Rewrite),
Return(Return),
If(If),
TryFiles(TryFiles),
ServerName(Vec<ServerName>),
Set {
variable: String,
value: Value,
},
Map(Map),
ClientMaxBodySize(Value),
Include(Value),
EmptyGif,
Internal,
LimitExcept(LimitExcept),
Etag(bool),
RecursiveErrorPages(bool),
ChunkedTransferEncoding(bool),
KeepaliveTimeout(Value, Option<Value>),
ServerTokens(Value),
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),
Allow(Source),
Deny(Source),
AccessLog(AccessLog),
RealIpHeader(Value),
RealIpRecursive(bool),
SetRealIpFrom(RealIpFrom),
Index(Vec<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)ProxySetHeaderFields of ProxySetHeader
field: Value | |
value: Value |
ProxyMethod(Value)ProxyReadTimeout(Value)ProxyConnectTimeout(Value)ProxyHideHeader(Value)ProxyPassHeader(Value)ProxyPassRequestBody(bool)ProxyPassRequestHeaders(bool)ProxyHttpVersion(ProxyHttpVersion)ProxyIgnoreHeaders(Vec<String>)ProxyInterceptErrors(bool)ProxyBuffering(bool)ProxyCache(Value)ProxyCacheKey(Value)ProxyCacheValid(ProxyCacheValid)ProxyNextUpstreamTries(Value)ProxyNextUpstreamTimeout(Value)ProxyNextUpstream(Vec<ProxyNextUpstreamFlag>)Gzip(bool)GzipStatic(GzipStatic)GzipProxied(Vec<GzipProxied>)AddHeader(AddHeader)Expires(Expires)Root(Value)Alias(Value)ErrorPage(ErrorPage)DefaultType(Value)ErrorLogFields of ErrorLog
file: Value | |
level: Option<ErrorLevel> |
Rewrite(Rewrite)Return(Return)If(If)TryFiles(TryFiles)ServerName(Vec<ServerName>)SetFields of Set
variable: String | |
value: Value |
Map(Map)ClientMaxBodySize(Value)Include(Value)EmptyGifInternalLimitExcept(LimitExcept)Etag(bool)RecursiveErrorPages(bool)ChunkedTransferEncoding(bool)KeepaliveTimeout(Value, Option<Value>)ServerTokens(Value)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)Allow(Source)Deny(Source)AccessLog(AccessLog)RealIpHeader(Value)RealIpRecursive(bool)SetRealIpFrom(RealIpFrom)Index(Vec<Value>)
Methods
impl Item[src]
impl Itempub fn directive_name(&self) -> &'static str[src]
pub fn directive_name(&self) -> &'static strpub 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 Itemfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Item[src]
impl Clone for Itemfn clone(&self) -> Item[src]
fn clone(&self) -> ItemReturns 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 Itemfn eq(&self, other: &Item) -> bool[src]
fn eq(&self, other: &Item) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Item[src]
impl Eq for Itemimpl Display for Item[src]
impl Display for Item