Struct weeb_api::ImageParams [] [src]

pub struct ImageParams {
    pub file_type: Option<String>,
    pub hidden: Option<bool>,
    pub kind: Option<String>,
    pub nsfw: Option<bool>,
    pub tags: Option<Vec<String>>,
    // some fields omitted
}

A struct containing the image parameters which are used for the random image search of the relevant client implementation.

Fields

The file type of the image you would like to recieve.

Wheather to include hidden images in your random image search.

The kind of image you would like to recieve; hug, pat, ect.

Wheather the returned image should be NSFW or not.

The tags you would like the returned image to have.

Methods

impl ImageParams
[src]

[src]

Used for creating a full ImageParams struct to pass to the relevant request function.

[src]

Used to create an ImageParams struct with just the kind value filled using the passed value.

[src]

Used to create an ImageParams struct with just the tags value filled using the passed value.

Trait Implementations

impl Default for ImageParams
[src]

[src]

Returns the "default value" for a type. Read more