mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-27 04:30:12 +08:00
21 lines
351 B
Rust
21 lines
351 B
Rust
use reqwest::Client;
|
|
|
|
#[allow(unused)]
|
|
pub(crate) struct ApiCaller<'a> {
|
|
pub(crate) url: &'a str,
|
|
pub(crate) client: Client,
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn test_api_caller() {
|
|
let _api_caller = ApiCaller {
|
|
url: "https://example.com",
|
|
client: Client::new(),
|
|
};
|
|
}
|
|
}
|