postwoman/src/model/request.rs

24 lines
459 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!()
}
}
impl IntoRequest for v1_0_0::RequestClass {
fn make_request(&self) -> reqwest::Request {
todo!()
}
}