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
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)