Trait DataSource

Source
pub trait DataSource:
    Send
    + Sync
    + 'static {
    // Required methods
    fn create_participant_activity<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_participant_activity_batch<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityBatchRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_participant_activity<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_participant_activity_batch<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityBatchRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_participant_activity<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_participant_activity_batch<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityBatchRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn participant_activity_details<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn participant_activity_details_batch<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityBatchRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn participant_activity_progress<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn participant_activity_progress_batch<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityBatchRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn participant_activity_result<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn participant_activity_result_batch<'life0, 'async_trait>(
        &'life0 self,
        request: ActivityBatchRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create_participant_activity<'life0, 'async_trait>( &'life0 self, request: ActivityRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create an activity for a specific participant.

Source

fn create_participant_activity_batch<'life0, 'async_trait>( &'life0 self, request: ActivityBatchRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

BATCH: Create an activity for a specific participant.

Source

fn update_participant_activity<'life0, 'async_trait>( &'life0 self, request: ActivityRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update an activity for a specific participant.

Source

fn update_participant_activity_batch<'life0, 'async_trait>( &'life0 self, request: ActivityBatchRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

BATCH: Update an activity for a specific participant.

Source

fn delete_participant_activity<'life0, 'async_trait>( &'life0 self, request: ActivityRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete an activity for a specific participant.

Source

fn delete_participant_activity_batch<'life0, 'async_trait>( &'life0 self, request: ActivityBatchRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

BATCH: Delete an activity for a specific participant.

Source

fn participant_activity_details<'life0, 'async_trait>( &'life0 self, request: ActivityRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check the details of an activity for a specific participant. This should NOT return any sensitive data.

Source

fn participant_activity_details_batch<'life0, 'async_trait>( &'life0 self, request: ActivityBatchRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

BATCH: Check the details of an activity for a specific participant.

Source

fn participant_activity_progress<'life0, 'async_trait>( &'life0 self, request: ActivityRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check the progress of an activity for a specific participant. This should NOT return any sensitive data.

Source

fn participant_activity_progress_batch<'life0, 'async_trait>( &'life0 self, request: ActivityBatchRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

BATCH: Check the progress of an activity for a specific participant.

Source

fn participant_activity_result<'life0, 'async_trait>( &'life0 self, request: ActivityRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check the result of an activity for a specific participant. This should only return how the data can be accessed, not the data itself. Or it should return the data, but encrypted for an authorized user.

Source

fn participant_activity_result_batch<'life0, 'async_trait>( &'life0 self, request: ActivityBatchRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<ActivityBatchResponse>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

BATCH: Check the result of an activity for a specific participant.

Implementors§