imgur_openapi/models/basic_string_response.rs
1/*
2 * Imgur API
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: 0.4.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct BasicStringResponse {
16 #[serde(rename = "data")]
17 pub data: String,
18 #[serde(rename = "status")]
19 pub status: i32,
20 #[serde(rename = "success")]
21 pub success: bool,
22}
23
24impl BasicStringResponse {
25 pub fn new(data: String, status: i32, success: bool) -> BasicStringResponse {
26 BasicStringResponse {
27 data,
28 status,
29 success,
30 }
31 }
32}
33
34