pub struct Builder { /* private fields */ }
Expand description
A builder for Handle
s.
This is used to maintain a live view over mutable configuration, and is best suited for cases where the Waf’s configuration evolves regularly, such as through remote configuration.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn add_or_update_config(
&mut self,
path: &str,
ruleset: &impl AsRef<ddwaf_object>,
diagnostics: Option<&mut WafOwned<WafMap>>,
) -> bool
pub fn add_or_update_config( &mut self, path: &str, ruleset: &impl AsRef<ddwaf_object>, diagnostics: Option<&mut WafOwned<WafMap>>, ) -> bool
Sourcepub fn remove_config(&mut self, path: &str) -> bool
pub fn remove_config(&mut self, path: &str) -> bool
Sourcepub fn config_paths_count(&mut self, filter: Option<&str>) -> u32
pub fn config_paths_count(&mut self, filter: Option<&str>) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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