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
file_type: Option<String>
The file type of the image you would like to recieve.
Wheather to include hidden images in your random image search.
kind: Option<String>
The kind of image you would like to recieve; hug, pat, ect.
nsfw: Option<bool>
Wheather the returned image should be NSFW or not.
The tags you would like the returned image to have.
Methods
impl ImageParams
[src]
fn new(
file_type: Option<String>,
hidden: Option<bool>,
kind: Option<String>,
nsfw: Option<bool>,
tags: Option<Vec<String>>
) -> Self
[src]
file_type: Option<String>,
hidden: Option<bool>,
kind: Option<String>,
nsfw: Option<bool>,
tags: Option<Vec<String>>
) -> Self
Used for creating a full ImageParams
struct to pass to the
relevant request function.
fn kind<S: Into<String>>(kind: S) -> Self
[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]
fn default() -> ImageParams
[src]
Returns the "default value" for a type. Read more