use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListFilesOut {
#[serde(rename = "data")]
pub data: Vec<models::FileSchema>,
#[serde(rename = "object")]
pub object: String,
#[serde(rename = "total", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub total: Option<Option<i32>>,
}
impl ListFilesOut {
pub fn new(data: Vec<models::FileSchema>, object: String) -> ListFilesOut {
ListFilesOut {
data,
object,
total: None,
}
}
}