pub struct Client {
pub client: Client,
}
Expand description
A client to access reddit
Fields§
§client: Client
The inner http client.
It probably shouldn’t be used directly by you. It also sets a strange user-agent as well in accordance with reddit’s request.
Implementations§
source§impl Client
impl Client
sourcepub fn new_with_user_agent(
platform: &str,
app_id: &str,
app_version: &str,
reddit_username: &str,
) -> Self
pub fn new_with_user_agent( platform: &str, app_id: &str, app_version: &str, reddit_username: &str, ) -> Self
Create a new Client
with a user-agent.
See https://github.com/reddit-archive/reddit/wiki/API#rules
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)