pub enum Item {
Show 73 variants
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>),
}
Expand description
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
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
Rewrite(Rewrite)
Return(Return)
If(If)
TryFiles(TryFiles)
ServerName(Vec<ServerName>)
Set
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>)
Implementations§
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more