ImpactProvider

Trait ImpactProvider 

Source
pub trait ImpactProvider {
    // Required method
    fn get_impacts<'life0, 'life1, 'async_trait>(
        &'life0 self,
        inventory: Inventory,
        usage_duration_hours: &'life1 f32,
        verbose: bool,
    ) -> Pin<Box<dyn Future<Output = Result<EstimatedInventory>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A ImpactProvider trait to implement for a specific impact API/Referential.

Required Methods§

Source

fn get_impacts<'life0, 'life1, 'async_trait>( &'life0 self, inventory: Inventory, usage_duration_hours: &'life1 f32, verbose: bool, ) -> Pin<Box<dyn Future<Output = Result<EstimatedInventory>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Returns a list of CloudImpacts. usage_duration_hours allow to retrieve the impacts for a given duration (i.e. project impacts for a specific duration).

Implementors§