pub trait WorkDatabase: Send + Sync {
// Required methods
fn work_pool(&self) -> &SqlitePool;
fn redact_secrets(&self, text: &str) -> String;
}Expand description
What the work stores need from whoever owns the database.
Required Methods§
Sourcefn work_pool(&self) -> &SqlitePool
fn work_pool(&self) -> &SqlitePool
The pool every statement runs on.
Sourcefn redact_secrets(&self, text: &str) -> String
fn redact_secrets(&self, text: &str) -> String
Strip secrets from text before it is kept in activity logs, journals and handoffs.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".