Skip to content

Commit

Permalink
doc: add reference link for from_py_with
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Sep 18, 2023
1 parent f208c68 commit 155e35f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub struct Request {
pub headers: HashMap<String, String>,
pub method: String,
pub path_params: HashMap<String, String>,
// 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<u8>,
pub url: Url,
Expand Down
1 change: 1 addition & 0 deletions src/types/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct Response {
pub status_code: u16,
pub response_type: String,
pub headers: HashMap<String, String>,
// 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<u8>,
pub file_path: Option<String>,
Expand Down

0 comments on commit 155e35f

Please sign in to comment.