pub trait SubscriptionRepository: Send + Sync {
    // Required methods
    fn put_feed_subscription<'life0, 'async_trait>(
        &'life0 self,
        feed: FeedSubscription
    ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_feed_subscription<'life0, 'async_trait>(
        &'life0 self,
        feed: FeedSubscription
    ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_subscribed_feed_urls<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _user_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn put_feed_subscription<'life0, 'async_trait>( &'life0 self, feed: FeedSubscription ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn delete_feed_subscription<'life0, 'async_trait>( &'life0 self, feed: FeedSubscription ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn fetch_subscribed_feed_urls<'life0, 'life1, 'async_trait>( &'life0 self, _user_id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

source§

impl<T> SubscriptionRepository for Arc<T>

source§

fn put_feed_subscription<'life0, 'async_trait>( &'life0 self, feed: FeedSubscription ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn delete_feed_subscription<'life0, 'async_trait>( &'life0 self, feed: FeedSubscription ) -> Pin<Box<dyn Future<Output = Result<(), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn fetch_subscribed_feed_urls<'life0, 'life1, 'async_trait>( &'life0 self, user_id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§