Struct furbooru::Client[][src]

pub struct Client { /* fields omitted */ }

Implementations

Fetch an individual comment by ID.

Search for comments.

Fetch a filter by its ID.

Fetch the list of system filters.

Fetch the list of user-level filters.

On every new site event, call methods on the callback. Explode if the callback explodes.

Here is an example Adaptor implementation:

use async_trait::async_trait;
use furbooru::*;
struct Adaptor;

#[async_trait]
impl furbooru::FirehoseAdaptor for Adaptor {
  async fn image_created(&self, img: Image) -> Result<()> {
    println!("new image: {} {} {}", img.id, img.name, img.view_url);
    Ok(())
  }

  async fn comment_created(&self, cmt: Comment) -> Result<()> {
    println!("new comment on image {}: {}", cmt.image_id, cmt.body);
    Ok(())
  }
}

Get the list of forums.

Get details about an individual forum by ID.

Get information about the currently featured image.

Get information about an image by ID.

Search for images that match a set of tags.

Upload an image to the booru.

Test this call with a custom instance of philomena. Abuse of this call will likely result in a ban from the booru you are posting things to.

Fetches a forum post by ID.

Fetches page n of posts in a thread in a forum.

Get information about a user’s profile by ID.

Create a new client targeting Furbooru.

Create a new client targeting Derpibooru.

Create a new client targeting any server you want.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.