pub struct Client {
pub client: Client,
}
Expand description
A Rule34 Client
Fields§
§client: Client
The inner http client.
This probably shouldn’t be used by you.
Implementations§
source§impl Client
impl Client
sourcepub fn list_posts(&self) -> PostListQueryBuilder<'_>
pub fn list_posts(&self) -> PostListQueryBuilder<'_>
Create a builder to list posts from rule34.
sourcepub async fn list_deleted_images(
&self,
last_id: Option<NonZeroU64>
) -> Result<DeletedImageList, Error>
pub async fn list_deleted_images( &self, last_id: Option<NonZeroU64> ) -> Result<DeletedImageList, Error>
Get a list of deleted images.
Only include ids over last_id
. Use None
for no limit.
Warning
Due to current technical limitations,
this function is not very memory efficient depending on last_id
.
This will require buffering ~30MB into memory.
You should probably limit its use with a semaphore or similar.
Get a builder to list tags.
sourcepub fn list_notes(&self) -> NotesListQueryBuilder<'_>
pub fn list_notes(&self) -> NotesListQueryBuilder<'_>
Get a builder to list notes.
This is undocumented.
Trait Implementations§
Auto Trait Implementations§
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