pub struct AuditConfig { /* private fields */ }Expand description
Configuration for AuditPlugin.
Implementations§
Source§impl AuditConfig
Fluent builder helpers for AuditConfig.
impl AuditConfig
Fluent builder helpers for AuditConfig.
Sourcepub fn with_mutations_only(self, enabled: bool) -> Self
pub fn with_mutations_only(self, enabled: bool) -> Self
Sourcepub fn with_include_prefixes<I, S>(self, prefixes: I) -> Self
pub fn with_include_prefixes<I, S>(self, prefixes: I) -> Self
Sourcepub fn with_exclude_prefixes<I, S>(self, prefixes: I) -> Self
pub fn with_exclude_prefixes<I, S>(self, prefixes: I) -> Self
Sourcepub fn with_capture_headers<I, S>(self, headers: I) -> Self
pub fn with_capture_headers<I, S>(self, headers: I) -> Self
Source§impl AuditConfig
impl AuditConfig
pub fn get_mutations_only(&self) -> bool
pub fn get_mut_mutations_only(&mut self) -> &mut bool
pub fn set_mutations_only(&mut self, val: bool) -> &mut Self
pub fn get_include_prefixes(&self) -> &Vec<String>
pub fn get_mut_include_prefixes(&mut self) -> &mut Vec<String>
pub fn set_include_prefixes(&mut self, val: Vec<String>) -> &mut Self
pub fn get_exclude_prefixes(&self) -> &Vec<String>
pub fn get_mut_exclude_prefixes(&mut self) -> &mut Vec<String>
pub fn set_exclude_prefixes(&mut self, val: Vec<String>) -> &mut Self
pub fn get_capture_headers(&self) -> &Vec<String>
pub fn get_mut_capture_headers(&mut self) -> &mut Vec<String>
pub fn set_capture_headers(&mut self, val: Vec<String>) -> &mut Self
pub fn get_redact_headers(&self) -> &Vec<String>
pub fn get_mut_redact_headers(&mut self) -> &mut Vec<String>
pub fn set_redact_headers(&mut self, val: Vec<String>) -> &mut Self
pub fn get_request_id_header(&self) -> &String
pub fn get_mut_request_id_header(&mut self) -> &mut String
pub fn set_request_id_header(&mut self, val: String) -> &mut Self
pub fn get_in_memory_capacity(&self) -> usize
pub fn get_mut_in_memory_capacity(&mut self) -> &mut usize
pub fn set_in_memory_capacity(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for AuditConfig
impl Clone for AuditConfig
Source§impl Debug for AuditConfig
impl Debug for AuditConfig
Source§impl Default for AuditConfig
Default construction for AuditConfig.
impl Default for AuditConfig
Default construction for AuditConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default AuditConfig auditing mutating methods and redacting auth/cookie headers.
§Returns
Self- Default configuration.
impl Eq for AuditConfig
Source§impl PartialEq for AuditConfig
impl PartialEq for AuditConfig
impl StructuralPartialEq for AuditConfig
Auto Trait Implementations§
impl Forget for AuditConfig
impl Freeze for AuditConfig
impl Move for AuditConfig
impl RefUnwindSafe for AuditConfig
impl Send for AuditConfigwhere
RawVecInner: Send,
impl Sync for AuditConfigwhere
RawVecInner: Sync,
impl Unpin for AuditConfig
impl UnsafeUnpin for AuditConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for AuditConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.