packager/pkgr/src/api/mod.rs
Didier 80c3072174
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
feat: implement packagequeue
2023-08-13 20:53:58 +02:00

27 lines
No EOL
505 B
Rust

use reqwest::blocking::Response;
pub struct APITransaction<R = Response> {
/// Query made to API.
query: String, //TODO: enum
/// Response struct from abstracted library
_response: Option<R>
}
impl<R> APITransaction<R> {
pub fn new(_response: Option<R>) -> Self {
APITransaction {
query: String::default(),
_response
}
}
}
pub struct API {
base_url: String,
token: Option<String>,
history: Vec<APITransaction>
}
impl API {
}