Struct esi::Configuration
source · pub struct Configuration {
pub namespace: String,
}
Expand description
This struct is used to configure optional behaviour within the ESI processor.
Usage Example
let config = esi::Configuration::default()
.with_namespace("app");
Fields§
§namespace: String
The XML namespace to use when scanning for ESI tags. Defaults to esi
.
Implementations§
source§impl Configuration
impl Configuration
sourcepub fn with_namespace(self, namespace: impl Into<String>) -> Self
pub fn with_namespace(self, namespace: impl Into<String>) -> Self
Sets an alternative ESI namespace, which is used to identify ESI instructions.
For example, setting this to test
would cause the processor to only match tags like <test:include>
.
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more