Document how a RequestBuilder gets constructed (#1097)

This commit is contained in:
Corey Farwell
2020-12-09 10:17:37 -05:00
committed by GitHub
parent a2133aec3b
commit 474d9eff9b
2 changed files with 4 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ pub struct Request {
}
/// A builder to construct the properties of a `Request`.
///
/// To construct a `RequestBuilder`, refer to the `Client` documentation.
#[must_use = "RequestBuilder does nothing until you 'send' it"]
pub struct RequestBuilder {
client: Client,

View File

@@ -22,6 +22,8 @@ pub struct Request {
}
/// A builder to construct the properties of a `Request`.
///
/// To construct a `RequestBuilder`, refer to the `Client` documentation.
#[derive(Debug)]
#[must_use = "RequestBuilder does nothing until you 'send' it"]
pub struct RequestBuilder {