pub trait AlertSqlLogic {
// Provided methods
fn insert_drift_alert<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
pool: &'life0 Pool<Postgres>,
task_info: &'life1 DriftTaskInfo,
entity_name: &'life2 str,
alert: &'life3 BTreeMap<String, String>,
drift_type: &'life4 DriftType,
) -> Pin<Box<dyn Future<Output = Result<PgQueryResult, SqlError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
fn get_drift_alerts<'life0, 'life1, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 DriftAlertRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<Alert>, 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 { ... }
}
Provided Methods§
Sourcefn insert_drift_alert<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
pool: &'life0 Pool<Postgres>,
task_info: &'life1 DriftTaskInfo,
entity_name: &'life2 str,
alert: &'life3 BTreeMap<String, String>,
drift_type: &'life4 DriftType,
) -> Pin<Box<dyn Future<Output = Result<PgQueryResult, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn insert_drift_alert<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
pool: &'life0 Pool<Postgres>,
task_info: &'life1 DriftTaskInfo,
entity_name: &'life2 str,
alert: &'life3 BTreeMap<String, String>,
drift_type: &'life4 DriftType,
) -> Pin<Box<dyn Future<Output = Result<PgQueryResult, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Inserts a drift alert into the database
§Arguments
name
- The name of the service to insert the alert forspace
- The name of the space to insert the alert forversion
- The version of the service to insert the alert foralert
- The alert to insert into the database
Sourcefn get_drift_alerts<'life0, 'life1, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 DriftAlertRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<Alert>, SqlError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn get_drift_alerts<'life0, 'life1, 'async_trait>(
pool: &'life0 Pool<Postgres>,
params: &'life1 DriftAlertRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<Alert>, 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.