pub struct FeedbinApi { /* private fields */ }Implementations§
Source§impl FeedbinApi
impl FeedbinApi
pub fn new<S: Into<String>>(base_url: &Url, username: S, password: S) -> Self
pub fn with_base_url(&self, base_url: &Url) -> Self
pub fn with_password<S: Into<String>>(&self, password: S) -> Self
pub async fn is_authenticated(&self, client: &Client) -> Result<bool, ApiError>
pub async fn is_reachable(&self, client: &Client) -> Result<bool, ApiError>
pub async fn get_entries( &self, client: &Client, page: Option<u32>, since: Option<DateTime<Utc>>, ids: Option<&[EntryID]>, starred: Option<bool>, enclosure: Option<bool>, extended: bool, ) -> Result<Vec<Entry>, ApiError>
pub async fn get_entries_for_feed( &self, client: &Client, feed_id: FeedID, cache: Option<Cache>, ) -> Result<CacheRequestResponse<Vec<Entry>>, ApiError>
pub async fn get_unread_entry_ids( &self, client: &Client, ) -> Result<Vec<EntryID>, ApiError>
pub async fn set_entries_unread( &self, client: &Client, entry_ids: &[EntryID], ) -> Result<(), ApiError>
pub async fn set_entries_read( &self, client: &Client, entry_ids: &[EntryID], ) -> Result<(), ApiError>
pub async fn get_starred_entry_ids( &self, client: &Client, ) -> Result<Vec<EntryID>, ApiError>
pub async fn set_entries_starred( &self, client: &Client, entry_ids: &[EntryID], ) -> Result<(), ApiError>
pub async fn set_entries_unstarred( &self, client: &Client, entry_ids: &[EntryID], ) -> Result<(), ApiError>
pub async fn get_entry( &self, client: &Client, entry_id: EntryID, ) -> Result<Entry, ApiError>
pub async fn get_subscriptions( &self, client: &Client, since: Option<DateTime<Utc>>, mode: Option<SubscriptionMode>, cache: Option<Cache>, ) -> Result<CacheRequestResponse<Vec<Subscription>>, ApiError>
pub async fn get_subscription( &self, client: &Client, subscription_id: SubscriptionID, ) -> Result<Subscription, ApiError>
pub async fn create_subscription<S: Into<String>>( &self, client: &Client, url: S, ) -> Result<CreateSubscriptionResult, ApiError>
pub async fn delete_subscription( &self, client: &Client, subscription_id: SubscriptionID, ) -> Result<(), ApiError>
pub async fn update_subscription<S: Into<String>>( &self, client: &Client, subscription_id: SubscriptionID, title: S, ) -> Result<(), ApiError>
pub async fn get_taggings( &self, client: &Client, cache: Option<Cache>, ) -> Result<CacheRequestResponse<Vec<Tagging>>, ApiError>
pub async fn get_tagging( &self, client: &Client, tagging_id: TaggingID, ) -> Result<Tagging, ApiError>
pub async fn create_tagging( &self, client: &Client, feed_id: FeedID, name: &str, ) -> Result<(), ApiError>
pub async fn delete_tagging( &self, client: &Client, tagging_id: TaggingID, ) -> Result<(), ApiError>
pub async fn rename_tag( &self, client: &Client, old_name: &str, new_name: &str, ) -> Result<(), ApiError>
pub async fn delete_tag( &self, client: &Client, name: &str, ) -> Result<(), ApiError>
pub async fn get_icons(&self, client: &Client) -> Result<Vec<Icon>, ApiError>
pub async fn import_opml( &self, client: &Client, opml: &str, ) -> Result<(), ApiError>
Auto Trait Implementations§
impl Freeze for FeedbinApi
impl RefUnwindSafe for FeedbinApi
impl Send for FeedbinApi
impl Sync for FeedbinApi
impl Unpin for FeedbinApi
impl UnwindSafe for FeedbinApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more