CalendarProvider

Trait CalendarProvider 

Source
pub trait CalendarProvider: Send + Sync {
    // Required methods
    fn list_calendars<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_events<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        calendar_id: &'life1 str,
        start: &'life2 str,
        end: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn create_event<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        calendar_id: &'life1 str,
        event: &'life2 CalendarEvent,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn update_event<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        event_id: &'life1 str,
        event: &'life2 CalendarEvent,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        event_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn find_free_time<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        calendars: &'life1 [String],
        duration_minutes: u32,
        range_start: &'life2 str,
        range_end: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Calendar provider trait

Required Methods§

Source

fn list_calendars<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_events<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, calendar_id: &'life1 str, start: &'life2 str, end: &'life3 str, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn create_event<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, calendar_id: &'life1 str, event: &'life2 CalendarEvent, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn update_event<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, event_id: &'life1 str, event: &'life2 CalendarEvent, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_event<'life0, 'life1, 'async_trait>( &'life0 self, event_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn find_free_time<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, calendars: &'life1 [String], duration_minutes: u32, range_start: &'life2 str, range_end: &'life3 str, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§