pub struct GetPocket {
pub consumer_key: String,
pub redirect_uri: String,
pub token: Token,
pub reqwester: Reqwester,
}Fields§
§consumer_key: String§redirect_uri: String§token: Token§reqwester: ReqwesterImplementations§
Source§impl GetPocket
impl GetPocket
pub async fn init<F, C>( consumer_key: String, redirect_uri: String, store_fn: F, opener_fn: C, ) -> Result<Self>
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
pub async fn new( consumer_key: String, redirect_uri: String, access_token: String, ) -> Result<Self>
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
pub async fn send<T>(&self, params: T) -> Result<RecordSendDirect>where
T: Serialize,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
Trait Implementations§
Source§impl AddingExt for GetPocket
impl AddingExt for GetPocket
Source§fn add_item_with_params<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'a str,
title: Option<&'a str>,
tags: Option<&'life1 [&'a str]>,
tweet_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<RecordAdded>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_item_with_params<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'a str,
title: Option<&'a str>,
tags: Option<&'life1 [&'a str]>,
tweet_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<RecordAdded>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
Source§fn add_item<'a, 'life0, 'async_trait>(
&'life0 self,
url: &'a str,
) -> Pin<Box<dyn Future<Output = Result<RecordAdded>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn add_item<'a, 'life0, 'async_trait>(
&'life0 self,
url: &'a str,
) -> Pin<Box<dyn Future<Output = Result<RecordAdded>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
Source§impl ModifyingExt for GetPocket
impl ModifyingExt for GetPocket
Source§fn archive<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
fn archive<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Move an item to the user’s archive
Source§fn readd<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
fn readd<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Move an item from the user’s archive back into their unread list.
Source§fn favorite<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
fn favorite<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Mark an item as a favorite
Source§fn unfavorite<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
fn unfavorite<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove an item from the user’s favorites
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
fn delete<'life0, 'async_trait>(
&'life0 self,
item_id: i64,
) -> Pin<Box<dyn Future<Output = Result<RecordModified>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Permanently remove an item from the user’s account
Source§impl RetrievingExt for GetPocket
impl RetrievingExt for GetPocket
Source§fn list_of_items_with_params<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: RecordItemState,
favorite: RecordItemFavorite,
tag: RecordItemTag<'a>,
content_type: RecordItemContentType,
sort: RecordItemSort,
detail_type: RecordItemDetailType,
search: Option<&'a str>,
domain: Option<&'a str>,
since: Option<&'life1 i32>,
offset: i32,
count: i32,
) -> Pin<Box<dyn Future<Output = Result<RecordItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_of_items_with_params<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
state: RecordItemState,
favorite: RecordItemFavorite,
tag: RecordItemTag<'a>,
content_type: RecordItemContentType,
sort: RecordItemSort,
detail_type: RecordItemDetailType,
search: Option<&'a str>,
domain: Option<&'a str>,
since: Option<&'life1 i32>,
offset: i32,
count: i32,
) -> Pin<Box<dyn Future<Output = Result<RecordItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
Source§fn list_of_items_paginate<'life0, 'async_trait>(
&'life0 self,
offset: i32,
count: i32,
) -> Pin<Box<dyn Future<Output = Result<RecordItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_of_items_paginate<'life0, 'async_trait>(
&'life0 self,
offset: i32,
count: i32,
) -> Pin<Box<dyn Future<Output = Result<RecordItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
Source§fn list_of_items<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RecordItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_of_items<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RecordItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated since 0.3.0: This function will be removed in next version. Please see the README for migration guidance.
Auto Trait Implementations§
impl Freeze for GetPocket
impl !RefUnwindSafe for GetPocket
impl Send for GetPocket
impl Sync for GetPocket
impl Unpin for GetPocket
impl !UnwindSafe for GetPocket
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