ReadLaterProvider

Trait ReadLaterProvider 

Source
pub trait ReadLaterProvider: Send + Sync {
    // Required methods
    fn save_url<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
        title: Option<&'life2 str>,
        tags: Option<&'life3 [String]>,
    ) -> 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 list_articles<'life0, 'async_trait>(
        &'life0 self,
        unread_only: bool,
        limit: u32,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_article<'life0, 'life1, 'async_trait>(
        &'life0 self,
        article_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn archive_article<'life0, 'life1, 'async_trait>(
        &'life0 self,
        article_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_article<'life0, 'life1, 'async_trait>(
        &'life0 self,
        article_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn favorite_article<'life0, 'life1, 'async_trait>(
        &'life0 self,
        article_id: &'life1 str,
        favorite: bool,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn tag_article<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        article_id: &'life1 str,
        tags: &'life2 [String],
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Read later provider trait (Pocket, Instapaper, Readwise)

Required Methods§

Source

fn save_url<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, url: &'life1 str, title: Option<&'life2 str>, tags: Option<&'life3 [String]>, ) -> 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 list_articles<'life0, 'async_trait>( &'life0 self, unread_only: bool, limit: u32, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Source

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

Source

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

Source

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

Source

fn tag_article<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, article_id: &'life1 str, tags: &'life2 [String], ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§