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
base_type: String
The kind of the image.
file: Vec<u8>
The image file data.
Wheather the image is private.
nsfw: Option<bool>
Wheather the imsage is NSFW.
source: Option<String>
The source of the image.
The tags for the image.
Methods
impl UploadParams
[src]
fn new(
base_type: String,
file: Vec<u8>,
hidden: Option<bool>,
nsfw: Option<bool>,
source: Option<String>,
tags: Option<Vec<String>>
) -> Self
[src]
base_type: String,
file: Vec<u8>,
hidden: Option<bool>,
nsfw: Option<bool>,
source: Option<String>,
tags: Option<Vec<String>>
) -> Self
Create a new UploadParams
struct using all possible values.
fn simple(base_type: String, file: Vec<u8>) -> Self
[src]
Create a new UploadParams
struct using the bare minimum number of
values.
Trait Implementations
impl Clone for UploadParams
[src]
fn clone(&self) -> UploadParams
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for UploadParams
[src]
fn default() -> UploadParams
[src]
Returns the "default value" for a type. Read more