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)ProxySetHeaderFields 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>)SetFields of Set
variable: String | |
value: Value |
Map(Map)ClientMaxBodySize(Value)Include(Value)EmptyGifInternalSslCertificate(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 Itempub fn directive_name(&self) -> &'static str[src]
pub fn directive_name(&self) -> &'static strTrait 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