pub enum Extension {
Show 23 variants
If {
predicate: Predicate,
extension: Box<Extension>,
},
NoDefaults,
Referrer(Option<String>),
RedirectIndexHtml,
RedirectHttpToHttps,
Nonce,
Redirect(Filter, String),
AllDefaults,
Templates,
Http2Push {
push_interval: f64,
check_every_request: u32,
},
Php {
connection: String,
capture_route: String,
working_directory: String,
},
ReverseProxy(ReverseProxy),
ClientCache(BTreeMap<String, ClientCachePreference>),
Auth(Auth),
ViewCounter(ViewCounter),
Link(Filter, String),
CorsSafe,
Cors(BTreeMap<String, CorsRule>),
CspSafe,
CspEmpty,
Csp(BTreeMap<String, CspRule>),
StreamBody(Filter),
Custom(String, Option<Value>),
}
Expand description
The available extensions.
Variants§
If
NoDefaults
Referrer(Option<String>)
RedirectIndexHtml
RedirectHttpToHttps
Nonce
Redirect(Filter, String)
AllDefaults
kvarn_extension defaults too
Templates
Http2Push
Php
ReverseProxy(ReverseProxy)
ClientCache(BTreeMap<String, ClientCachePreference>)
Auth(Auth)
ViewCounter(ViewCounter)
Link(Filter, String)
CorsSafe
Cors(BTreeMap<String, CorsRule>)
CspSafe
CspEmpty
Csp(BTreeMap<String, CspRule>)
StreamBody(Filter)
Custom(String, Option<Value>)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
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