29 lines
680 B
Rust
29 lines
680 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct TransferInfoRequest {
|
|
pub message: String,
|
|
pub body: TransferInfoBody,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct TransferInfoBody {
|
|
pub keyword: String,
|
|
pub files: String,
|
|
pub ip: String,
|
|
pub name: String,
|
|
}
|
|
|
|
impl TransferInfoRequest {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
message: "".to_string(),
|
|
body: TransferInfoBody {
|
|
keyword: "".to_string(),
|
|
files: "".to_string(),
|
|
ip: "".to_string(),
|
|
name: "".to_string(),
|
|
},
|
|
}
|
|
}
|
|
}
|