Add implementation of `Debug` trait for `RequestBuilder`. (#50)

pull/51/head
Tomasz Andrzejak 2022-07-21 14:23:27 +02:00 committed by GitHub
parent b3f7ce40d3
commit 360f23c952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Added
- Implementation of `Debug` trait for `RequestBuilder`.
## [0.1.5] - 2022-02-21 ## [0.1.5] - 2022-02-21
### Added ### Added

View File

@ -260,3 +260,12 @@ impl RequestBuilder {
.map(|inner| RequestBuilder { inner, client }) .map(|inner| RequestBuilder { inner, client })
} }
} }
impl fmt::Debug for RequestBuilder {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
// skipping middleware_stack field for now
f.debug_struct("RequestBuilder")
.field("inner", &self.inner)
.finish_non_exhaustive()
}
}