Struct feedly_api::FeedlyApi
source · pub struct FeedlyApi { /* private fields */ }
Implementations
sourceimpl FeedlyApi
impl FeedlyApi
pub fn new(
id: String,
secret: String,
access_token: Option<AccessToken>,
refresh_token: Option<RefreshToken>,
token_expires: Option<NaiveDateTime>
) -> Result<FeedlyApi, ApiError>
pub fn has_access_token(&self) -> bool
pub fn login_url(&self) -> Result<Url, ApiError>
pub fn parse_redirected_url(url: Url) -> Result<AuthCode, ApiError>
pub fn redirect_url(&self) -> Url
pub fn initialize_user_id(&mut self) -> Result<(), ApiError>
pub fn parse_expiration_date(
expires_in: Option<String>
) -> Result<Option<NaiveDateTime>, ApiError>
pub fn gernerate_feed_id(url: Url) -> String
pub fn generate_category_id(&mut self, title: &str) -> Result<String, ApiError>
pub fn generate_tag_id(&mut self, title: &str) -> Result<String, ApiError>
pub fn category_all(&mut self) -> Result<String, ApiError>
pub fn tag_marked(&mut self) -> Result<String, ApiError>
pub fn tag_read(&mut self) -> Result<String, ApiError>
pub fn request_auth_token(
&mut self,
auth_code: AuthCode
) -> Result<AccessTokenResponse, ApiError>
pub fn get_profile(&mut self) -> Result<Profile, ApiError>
pub fn update_profile(
&mut self,
email: Option<String>,
given_name: Option<String>,
family_name: Option<String>,
picture: Option<String>,
gender: Option<bool>,
locale: Option<String>,
twitter: Option<String>,
facebook: Option<String>
) -> Result<Profile, ApiError>
pub fn get_categories(&mut self) -> Result<Vec<Category>, ApiError>
pub fn update_category(&mut self, id: &str, label: &str) -> Result<(), ApiError>
pub fn delete_category(&mut self, id: &str) -> Result<(), ApiError>
pub fn get_subsriptions(&mut self) -> Result<Vec<Subscription>, ApiError>
pub fn add_subscription(
&mut self,
subscription: SubscriptionInput
) -> Result<(), ApiError>
pub fn update_subscriptions(
&mut self,
subscriptions: Vec<SubscriptionInput>
) -> Result<(), ApiError>
pub fn delete_subscription(&mut self, id: &str) -> Result<(), ApiError>
pub fn tag_entry(
&mut self,
entry_id: &str,
tag_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn tag_entries(
&mut self,
entry_ids: Vec<&str>,
tag_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn update_tag(&mut self, tag_id: &str, label: &str) -> Result<(), ApiError>
pub fn untag_entries(
&mut self,
entry_ids: Vec<&str>,
tag_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn get_entries(
&mut self,
entry_ids: Vec<&str>
) -> Result<Vec<Entry>, ApiError>
pub fn create_entry(&mut self, entry: Entry) -> Result<Vec<String>, ApiError>
pub fn get_stream(
&mut self,
stream_id: &str,
continuation: Option<String>,
count: Option<u32>,
ranked: Option<&str>,
unread_only: Option<bool>,
newer_than: Option<u64>
) -> Result<Stream, ApiError>
pub fn get_unread_counts(&mut self) -> Result<Counts, ApiError>
pub fn mark_entries_read(&mut self, entry_ids: Vec<&str>) -> Result<(), ApiError>
pub fn mark_entries_unread(
&mut self,
entry_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn mark_feeds_read(&mut self, feed_ids: Vec<&str>) -> Result<(), ApiError>
pub fn mark_categories_read(
&mut self,
category_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn mark_entries_saved(
&mut self,
entry_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn mark_entries_unsaved(
&mut self,
entry_ids: Vec<&str>
) -> Result<(), ApiError>
pub fn export_opml(&mut self) -> Result<String, ApiError>
pub fn import_opml(&mut self, opml: &str) -> Result<(), ApiError>
Auto Trait Implementations
impl !RefUnwindSafe for FeedlyApi
impl Send for FeedlyApi
impl Sync for FeedlyApi
impl Unpin for FeedlyApi
impl !UnwindSafe for FeedlyApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more