pub trait AssetExt: DynClone + Debug + Send + Sync {
// Required methods
fn assignees<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project: &'life1 Project,
asset: &'life2 ProductionAsset
) -> Pin<Box<dyn Future<Output = Result<Vec<Staff>, DatabaseError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn statuses<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project: &'life1 Project,
asset: &'life2 ProductionAsset
) -> Pin<Box<dyn Future<Output = Result<Vec<AssetStatus>, DatabaseError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn status_action_mut<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project: &'life1 Project,
asset: &'life2 ProductionAsset,
action: StatusAction
) -> Pin<Box<dyn Future<Output = Result<(), ModificationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn clear_cache(&mut self) { ... }
}Required Methods§
sourcefn assignees<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project: &'life1 Project,
asset: &'life2 ProductionAsset
) -> Pin<Box<dyn Future<Output = Result<Vec<Staff>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn assignees<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, project: &'life1 Project, asset: &'life2 ProductionAsset ) -> Pin<Box<dyn Future<Output = Result<Vec<Staff>, DatabaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Gets assignees of the given asset.
sourcefn statuses<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project: &'life1 Project,
asset: &'life2 ProductionAsset
) -> Pin<Box<dyn Future<Output = Result<Vec<AssetStatus>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn statuses<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, project: &'life1 Project, asset: &'life2 ProductionAsset ) -> Pin<Box<dyn Future<Output = Result<Vec<AssetStatus>, DatabaseError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Gets statuses of the given asset.
sourcefn status_action_mut<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
project: &'life1 Project,
asset: &'life2 ProductionAsset,
action: StatusAction
) -> Pin<Box<dyn Future<Output = Result<(), ModificationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn status_action_mut<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, project: &'life1 Project, asset: &'life2 ProductionAsset, action: StatusAction ) -> Pin<Box<dyn Future<Output = Result<(), ModificationError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Updates statuses for the asset, given that the specified StatusAction has been taken place.
Returns the modified ProductionAsset.