diff --git a/src/types/request.rs b/src/types/request.rs index 70f41cbf5..c9ed5440f 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -13,6 +13,7 @@ pub struct Request { pub headers: HashMap, pub method: String, pub path_params: HashMap, + // https://pyo3.rs/v0.19.2/function.html?highlight=from_py_#per-argument-options #[pyo3(from_py_with = "get_body_from_pyobject")] pub body: Vec, pub url: Url, diff --git a/src/types/response.rs b/src/types/response.rs index cf704d469..4962fd0f6 100644 --- a/src/types/response.rs +++ b/src/types/response.rs @@ -16,6 +16,7 @@ pub struct Response { pub status_code: u16, pub response_type: String, pub headers: HashMap, + // https://pyo3.rs/v0.19.2/function.html?highlight=from_py_#per-argument-options #[pyo3(from_py_with = "get_description_from_pyobject")] pub description: Vec, pub file_path: Option,