pub struct Client { /* private fields */ }Expand description
A client that names the application in its user agent.
Implementations§
Source§impl Client
impl Client
Sourcepub fn image(&self, url: &str) -> Result<Vec<u8>, Error>
pub fn image(&self, url: &str) -> Result<Vec<u8>, Error>
A small file from the site, such as a thumbnail (at most 4 MB).
Sourcepub fn list(
&self,
sort: Sort,
section: &str,
start: u32,
count: u32,
) -> Result<Vec<Mod>, Error>
pub fn list( &self, sort: Sort, section: &str, start: u32, count: u32, ) -> Result<Vec<Mod>, Error>
count mods from start of a section ("" for all), in an order.
Sourcepub fn search(&self, text: &str) -> Result<Vec<Mod>, Error>
pub fn search(&self, text: &str) -> Result<Vec<Mod>, Error>
The mods the site’s search finds for text.
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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