Skip to main content

WorkDatabase

Trait WorkDatabase 

Source
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§

Source

fn work_pool(&self) -> &SqlitePool

The pool every statement runs on.

Source

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".

Implementors§