-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add / fix smithy-client docs #855
Conversation
A new generated diff is ready to view: __generated-main...__generated-docs-fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this would have helped me!
@@ -122,6 +122,24 @@ fn find_source<'a, E: Error + 'static>(err: &'a (dyn Error + 'static)) -> Option | |||
|
|||
#[derive(Default, Debug)] | |||
/// Builder for [`HyperAdapter`] | |||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this doc comment go on HyperAdapter itself? At least when I was digging into the docs, that's where I landed first, and then made my way into the builder doc once I knew I wanted to use it and needed to construct it.
/// use aws_smithy_client::erase::DynConnector; | ||
/// let hyper_connector = hyper_ext::Adapter::builder().build(conns::https()); | ||
/// // this client can then be used when constructing a Smithy Client | ||
/// // NOTE: in real usage, you will almost certainly want a real middleware implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by this note?
/// use aws_smithy_client::erase::DynConnector; | ||
/// let hyper_connector = hyper_ext::Adapter::builder().build(conns::https()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// use aws_smithy_client::erase::DynConnector; | |
/// let hyper_connector = hyper_ext::Adapter::builder().build(conns::https()); | |
/// use aws_smithy_client::erase::DynConnector; | |
/// | |
/// let hyper_connector = hyper_ext::Adapter::builder().build(conns::https()); |
A new generated diff is ready to view: __generated-main...__generated-docs-fix |
pub struct HyperAdapter<C>(HttpReadTimeout<hyper::Client<ConnectTimeout<C>, SdkBody>>); | ||
pub struct Adapter<C>(HttpReadTimeout<hyper::Client<ConnectTimeout<C>, SdkBody>>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a breaking change that should get called out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, we were publicly exporting it as Adapter
A new generated diff is ready to view: __generated-main...__generated-docs-fix |
Co-authored-by: John DiSanti <jdisanti@amazon.com>
A new generated diff is ready to view: __generated-main...__generated-docs-fix |
A new generated diff is ready to view: __generated-main...__generated-docs-fix |
A new generated diff is ready to view: __generated-main...__generated-docs-fix |
Motivation and Context
Improve docs for constructing smithy clients
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.