#[allow(clippy::return_self_not_must_use)]
#[derive(Clone, Debug)]
pub struct Configuration {
pub namespace: String,
pub is_escaped_content: bool,
}
impl Default for Configuration {
fn default() -> Self {
Self {
namespace: String::from("esi"),
is_escaped_content: true,
}
}
}
impl Configuration {
pub fn with_namespace(mut self, namespace: impl Into<String>) -> Self {
self.namespace = namespace.into();
self
}
pub fn with_escaped(mut self, is_escaped: impl Into<bool>) -> Self {
self.is_escaped_content = is_escaped.into();
self
}
}