pub struct JsonClient { /* private fields */ }
Implementations§
Source§impl JsonClient
impl JsonClient
pub fn new() -> Self
pub fn item(&self, id: Id) -> Result<Item, Box<dyn Error>>
pub fn max_item(&self) -> Result<Id, Box<dyn Error>>
pub fn user(&self, username: String) -> Result<User, Box<dyn Error>>
pub fn new_stories(&self) -> Result<Vec<Id>, Box<dyn Error>>
pub fn top_stories(&self) -> Result<Vec<Id>, Box<dyn Error>>
pub fn updates(&self) -> Result<(Vec<Id>, Vec<String>), Box<dyn Error>>
pub fn ask_stories(&self) -> Result<Vec<Id>, Box<dyn Error>>
pub fn show_stories(&self) -> Result<Vec<Id>, Box<dyn Error>>
pub fn job_stories(&self) -> Result<Vec<Id>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for JsonClient
impl !RefUnwindSafe for JsonClient
impl Send for JsonClient
impl Sync for JsonClient
impl Unpin for JsonClient
impl !UnwindSafe for JsonClient
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