imgur_openapi 0.4.0

Imgur API client library for Rust.
Documentation
/*
 * Imgur API
 *
 * Imgur's API exposes the entire Imgur infrastructure via a standardized programmatic interface. Using Imgur's API, you can do just about anything you can do on imgur.com, while using your programming language of choice.
 *
 * The version of the OpenAPI document: 0.4.0
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AccountResponse {
    #[serde(rename = "data")]
    pub data: Box<crate::models::Account>,
    #[serde(rename = "status")]
    pub status: i32,
    #[serde(rename = "success")]
    pub success: bool,
}

impl AccountResponse {
    pub fn new(data: crate::models::Account, status: i32, success: bool) -> AccountResponse {
        AccountResponse {
            data: Box::new(data),
            status,
            success,
        }
    }
}