postwoman/src/model/request.rs

24 lines
454 B
Rust
Raw Normal View History

2023-06-15 15:42:07 +02:00
use postman_collection::{PostmanCollection, v1_0_0, v2_0_0, v2_1_0};
pub trait IntoRequest {
fn make_request(&self) -> reqwest::Request;
}
impl IntoRequest for v2_0_0::RequestClass {
fn make_request(&self) -> reqwest::Request {
todo!()
}
}
impl IntoRequest for v2_1_0::RequestClass {
fn make_request(&self) -> reqwest::Request {
todo!()
}
}
2023-06-15 15:59:03 +02:00
impl IntoRequest for v1_0_0::Request {
2023-06-15 15:42:07 +02:00
fn make_request(&self) -> reqwest::Request {
todo!()
}
}