pub struct EnvAuditConfig {
pub config: AuditConfig,
pub entity_level: AuditLevel,
pub sql_level: AuditLevel,
pub sql_tables: Option<HashSet<String>>,
pub sink: AuditSink,
pub schema_mode: SchemaMode,
}Expand description
The fully resolved configuration parsed from environment variables.
Constructed by AuditConfig::from_env() or AuditConfig::from_env_with_tables().
Fields§
§config: AuditConfigCore audit config with module levels.
entity_level: AuditLevelGlobal entity audit level (from TEAQL_AUDIT).
sql_level: AuditLevelGlobal SQL log level (from TEAQL_SQL).
sql_tables: Option<HashSet<String>>SQL table include filter (from TEAQL_SQL_TABLES). None = all tables.
sink: AuditSinkOutput sink (from TEAQL_SINK).
schema_mode: SchemaModeSchema migration mode (from TEAQL_SCHEMA). Default: Verify.
Implementations§
Source§impl EnvAuditConfig
impl EnvAuditConfig
Sourcepub fn sql_active_for(&self, table: &str) -> bool
pub fn sql_active_for(&self, table: &str) -> bool
Check if SQL logging is active for a given table name.
Trait Implementations§
Source§impl Clone for EnvAuditConfig
impl Clone for EnvAuditConfig
Source§fn clone(&self) -> EnvAuditConfig
fn clone(&self) -> EnvAuditConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EnvAuditConfig
impl RefUnwindSafe for EnvAuditConfig
impl Send for EnvAuditConfig
impl Sync for EnvAuditConfig
impl Unpin for EnvAuditConfig
impl UnsafeUnpin for EnvAuditConfig
impl UnwindSafe for EnvAuditConfig
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