pub trait AlertSqlLogic {
// Provided methods
fn insert_drift_alert<'life0, 'life1, 'life2, 'async_trait>(
pool: &'life0 Pool<Postgres>,
entity_id: &'life1 i32,
alert: &'life2 AlertMap,
) -> Pin<Box<dyn Future<Output = Result<PgQueryResult, SqlError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_paginated_drift_alerts<'life0, 'life1, 'life2, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 DriftAlertPaginationRequest,
entity_id: &'life2 i32,
) -> Pin<Box<dyn Future<Output = Result<DriftAlertPaginationResponse, SqlError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn update_drift_alert_status<'life0, 'life1, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 UpdateAlertStatus,
) -> Pin<Box<dyn Future<Output = Result<UpdateAlertResult, SqlError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait { ... }
}Provided Methods§
Sourcefn insert_drift_alert<'life0, 'life1, 'life2, 'async_trait>(
pool: &'life0 Pool<Postgres>,
entity_id: &'life1 i32,
alert: &'life2 AlertMap,
) -> Pin<Box<dyn Future<Output = Result<PgQueryResult, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn insert_drift_alert<'life0, 'life1, 'life2, 'async_trait>(
pool: &'life0 Pool<Postgres>,
entity_id: &'life1 i32,
alert: &'life2 AlertMap,
) -> Pin<Box<dyn Future<Output = Result<PgQueryResult, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Inserts a drift alert into the database
§Arguments
task_info- The drift task info containing entity_identity_name- The name of the entityalert- The alert to insert into the databasedrift_type- The type of drift alert
Sourcefn get_paginated_drift_alerts<'life0, 'life1, 'life2, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 DriftAlertPaginationRequest,
entity_id: &'life2 i32,
) -> Pin<Box<dyn Future<Output = Result<DriftAlertPaginationResponse, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_paginated_drift_alerts<'life0, 'life1, 'life2, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 DriftAlertPaginationRequest,
entity_id: &'life2 i32,
) -> Pin<Box<dyn Future<Output = Result<DriftAlertPaginationResponse, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Sourcefn update_drift_alert_status<'life0, 'life1, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 UpdateAlertStatus,
) -> Pin<Box<dyn Future<Output = Result<UpdateAlertResult, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn update_drift_alert_status<'life0, 'life1, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 UpdateAlertStatus,
) -> Pin<Box<dyn Future<Output = Result<UpdateAlertResult, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.