Struct weeb_api::UploadParams [] [src]

pub struct UploadParams {
    pub base_type: String,
    pub file: Vec<u8>,
    pub hidden: Option<bool>,
    pub nsfw: Option<bool>,
    pub source: Option<String>,
    pub tags: Option<Vec<String>>,
    // some fields omitted
}

A struct used for uploading images to the Api.

Fields

The kind of the image.

The image file data.

Wheather the image is private.

Wheather the imsage is NSFW.

The source of the image.

The tags for the image.

Methods

impl UploadParams
[src]

[src]

Create a new UploadParams struct using all possible values.

[src]

Create a new UploadParams struct using the bare minimum number of values.

Trait Implementations

impl Clone for UploadParams
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for UploadParams
[src]

[src]

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