mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
22 lines
515 B
Rust
22 lines
515 B
Rust
use utoipa::ToSchema;
|
|
|
|
#[derive(Debug, serde::Serialize, ToSchema)]
|
|
pub struct CreateFileResponse {
|
|
/// ID of the file created
|
|
pub file_id: String,
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize, ToSchema, Clone)]
|
|
pub struct FileMetadataResponse {
|
|
/// ID of the file created
|
|
pub file_id: String,
|
|
/// Name of the file
|
|
pub file_name: Option<String>,
|
|
/// Size of the file
|
|
pub file_size: i32,
|
|
/// Type of the file
|
|
pub file_type: String,
|
|
/// File availability
|
|
pub available: bool,
|
|
}
|