pub struct GoogleReader { /* private fields */ }
Expand description
A Google Reader client
This should be instantiated with GoogleReader::try_new()
, as a mut
variable because login sets the authtoken.
Implementations§
Source§impl GoogleReader
Does all the things.
impl GoogleReader
Does all the things.
Sourcepub fn try_new(
username: impl ToString,
password: impl ToString,
server_url: impl ToString,
) -> Result<Self>
pub fn try_new( username: impl ToString, password: impl ToString, server_url: impl ToString, ) -> Result<Self>
The server URL is something like https://example.com/api/greader.php
for FreshRSS
Sourcepub async fn get_write_token(&mut self) -> Result<String>
pub async fn get_write_token(&mut self) -> Result<String>
Get a “write” token.
Sourcepub async fn get_unread_items(
&mut self,
continuation: Option<String>,
) -> Result<Response>
pub async fn get_unread_items( &mut self, continuation: Option<String>, ) -> Result<Response>
Returns a list of unread item IDs.
pub async fn get_item(&self, _item_id: usize)
Sourcepub async fn mark_item_read(&mut self, item_id: impl ToString) -> Result<String>
pub async fn mark_item_read(&mut self, item_id: impl ToString) -> Result<String>
Mark an item as read
Sourcepub async fn unread_count(&mut self) -> Result<usize>
pub async fn unread_count(&mut self) -> Result<usize>
Returns the number of unread items, does’nt work for FreshRSS.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoogleReader
impl !RefUnwindSafe for GoogleReader
impl Send for GoogleReader
impl Sync for GoogleReader
impl Unpin for GoogleReader
impl !UnwindSafe for GoogleReader
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