1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashMap;

use reqwest::Method;

use crate::core::constants::AccessTokenType;

/// Request 请求结构体
#[derive(Debug, Clone, Default)]
pub struct ApiRequest {
    pub(crate) http_method: Method,
    pub api_path: String,
    pub body: Vec<u8>,
    pub query_params: HashMap<String, String>,
    pub path_params: HashMap<String, Vec<String>>,
    pub(crate) supported_access_token_types: Vec<AccessTokenType>,
    pub file: Vec<u8>,
}