pub trait SuotarCallAudit: Send + Sync {
// Required methods
fn started<'life0, 'async_trait>(
&'life0 self,
started: SuotarCallStarted,
) -> Pin<Box<dyn Future<Output = Option<Uuid>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn finished<'life0, 'async_trait>(
&'life0 self,
call_id: Uuid,
finished: SuotarCallFinished,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Persists one suotar_api_calls row per call. A trait because the table is in the models crate,
which depends on this one. Implementations must scrub the bodies.
Required Methods§
Sourcefn started<'life0, 'async_trait>(
&'life0 self,
started: SuotarCallStarted,
) -> Pin<Box<dyn Future<Output = Option<Uuid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn started<'life0, 'async_trait>(
&'life0 self,
started: SuotarCallStarted,
) -> Pin<Box<dyn Future<Output = Option<Uuid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the row id, which travels out as CORRELATION_ID_HEADER. None means the row
could not be written; the call goes out anyway.