Skip to content

Commit ba3e186

Browse files
rcohaws-sdk-rust-ci
authored andcommitted
[smithy-rs] Fix debug bound on 0.55.x (#2630)
## Motivation and Context - #2577 added a `Debug` bound on `ResolveEndpoint`, but this was a semver-incompatible change ## Description This removes that bound but re-adds a Debug implementation in areas that we need them ## Testing - CI - [ ] Backport this commit to main ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent 731a029 commit ba3e186

File tree

342 files changed

+2732
-686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+2732
-686
lines changed

sdk/accessanalyzer/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Config {
106106
}
107107
}
108108
/// Builder for creating a `Config`.
109-
#[derive(Clone, Debug, Default)]
109+
#[derive(Clone, Default)]
110110
pub struct Builder {
111111
make_token: Option<crate::idempotency_token::IdempotencyTokenProvider>,
112112
endpoint_resolver: Option<
@@ -124,6 +124,12 @@ pub struct Builder {
124124
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
125125
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
126126
}
127+
impl std::fmt::Debug for Builder {
128+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
129+
let mut config = f.debug_struct("Builder");
130+
config.finish()
131+
}
132+
}
127133
impl Builder {
128134
/// Constructs a config builder.
129135
pub fn new() -> Self {

sdk/account/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Config {
9999
}
100100
}
101101
/// Builder for creating a `Config`.
102-
#[derive(Clone, Debug, Default)]
102+
#[derive(Clone, Default)]
103103
pub struct Builder {
104104
endpoint_resolver: Option<
105105
std::sync::Arc<dyn aws_smithy_http::endpoint::ResolveEndpoint<crate::endpoint::Params>>,
@@ -116,6 +116,12 @@ pub struct Builder {
116116
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
117117
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
118118
}
119+
impl std::fmt::Debug for Builder {
120+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121+
let mut config = f.debug_struct("Builder");
122+
config.finish()
123+
}
124+
}
119125
impl Builder {
120126
/// Constructs a config builder.
121127
pub fn new() -> Self {

sdk/acm/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Config {
9999
}
100100
}
101101
/// Builder for creating a `Config`.
102-
#[derive(Clone, Debug, Default)]
102+
#[derive(Clone, Default)]
103103
pub struct Builder {
104104
endpoint_resolver: Option<
105105
std::sync::Arc<dyn aws_smithy_http::endpoint::ResolveEndpoint<crate::endpoint::Params>>,
@@ -116,6 +116,12 @@ pub struct Builder {
116116
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
117117
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
118118
}
119+
impl std::fmt::Debug for Builder {
120+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121+
let mut config = f.debug_struct("Builder");
122+
config.finish()
123+
}
124+
}
119125
impl Builder {
120126
/// Constructs a config builder.
121127
pub fn new() -> Self {

sdk/acmpca/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Config {
9999
}
100100
}
101101
/// Builder for creating a `Config`.
102-
#[derive(Clone, Debug, Default)]
102+
#[derive(Clone, Default)]
103103
pub struct Builder {
104104
endpoint_resolver: Option<
105105
std::sync::Arc<dyn aws_smithy_http::endpoint::ResolveEndpoint<crate::endpoint::Params>>,
@@ -116,6 +116,12 @@ pub struct Builder {
116116
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
117117
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
118118
}
119+
impl std::fmt::Debug for Builder {
120+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121+
let mut config = f.debug_struct("Builder");
122+
config.finish()
123+
}
124+
}
119125
impl Builder {
120126
/// Constructs a config builder.
121127
pub fn new() -> Self {

sdk/alexaforbusiness/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Config {
106106
}
107107
}
108108
/// Builder for creating a `Config`.
109-
#[derive(Clone, Debug, Default)]
109+
#[derive(Clone, Default)]
110110
pub struct Builder {
111111
make_token: Option<crate::idempotency_token::IdempotencyTokenProvider>,
112112
endpoint_resolver: Option<
@@ -124,6 +124,12 @@ pub struct Builder {
124124
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
125125
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
126126
}
127+
impl std::fmt::Debug for Builder {
128+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
129+
let mut config = f.debug_struct("Builder");
130+
config.finish()
131+
}
132+
}
127133
impl Builder {
128134
/// Constructs a config builder.
129135
pub fn new() -> Self {

sdk/amp/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Config {
106106
}
107107
}
108108
/// Builder for creating a `Config`.
109-
#[derive(Clone, Debug, Default)]
109+
#[derive(Clone, Default)]
110110
pub struct Builder {
111111
make_token: Option<crate::idempotency_token::IdempotencyTokenProvider>,
112112
endpoint_resolver: Option<
@@ -124,6 +124,12 @@ pub struct Builder {
124124
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
125125
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
126126
}
127+
impl std::fmt::Debug for Builder {
128+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
129+
let mut config = f.debug_struct("Builder");
130+
config.finish()
131+
}
132+
}
127133
impl Builder {
128134
/// Constructs a config builder.
129135
pub fn new() -> Self {

sdk/amplify/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Config {
9999
}
100100
}
101101
/// Builder for creating a `Config`.
102-
#[derive(Clone, Debug, Default)]
102+
#[derive(Clone, Default)]
103103
pub struct Builder {
104104
endpoint_resolver: Option<
105105
std::sync::Arc<dyn aws_smithy_http::endpoint::ResolveEndpoint<crate::endpoint::Params>>,
@@ -116,6 +116,12 @@ pub struct Builder {
116116
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
117117
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
118118
}
119+
impl std::fmt::Debug for Builder {
120+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121+
let mut config = f.debug_struct("Builder");
122+
config.finish()
123+
}
124+
}
119125
impl Builder {
120126
/// Constructs a config builder.
121127
pub fn new() -> Self {

sdk/amplifybackend/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Config {
9999
}
100100
}
101101
/// Builder for creating a `Config`.
102-
#[derive(Clone, Debug, Default)]
102+
#[derive(Clone, Default)]
103103
pub struct Builder {
104104
endpoint_resolver: Option<
105105
std::sync::Arc<dyn aws_smithy_http::endpoint::ResolveEndpoint<crate::endpoint::Params>>,
@@ -116,6 +116,12 @@ pub struct Builder {
116116
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
117117
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
118118
}
119+
impl std::fmt::Debug for Builder {
120+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121+
let mut config = f.debug_struct("Builder");
122+
config.finish()
123+
}
124+
}
119125
impl Builder {
120126
/// Constructs a config builder.
121127
pub fn new() -> Self {

sdk/amplifyuibuilder/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Config {
106106
}
107107
}
108108
/// Builder for creating a `Config`.
109-
#[derive(Clone, Debug, Default)]
109+
#[derive(Clone, Default)]
110110
pub struct Builder {
111111
make_token: Option<crate::idempotency_token::IdempotencyTokenProvider>,
112112
endpoint_resolver: Option<
@@ -124,6 +124,12 @@ pub struct Builder {
124124
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
125125
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
126126
}
127+
impl std::fmt::Debug for Builder {
128+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
129+
let mut config = f.debug_struct("Builder");
130+
config.finish()
131+
}
132+
}
127133
impl Builder {
128134
/// Constructs a config builder.
129135
pub fn new() -> Self {

sdk/apigateway/src/config.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Config {
9999
}
100100
}
101101
/// Builder for creating a `Config`.
102-
#[derive(Clone, Debug, Default)]
102+
#[derive(Clone, Default)]
103103
pub struct Builder {
104104
endpoint_resolver: Option<
105105
std::sync::Arc<dyn aws_smithy_http::endpoint::ResolveEndpoint<crate::endpoint::Params>>,
@@ -116,6 +116,12 @@ pub struct Builder {
116116
credentials_provider: Option<aws_credential_types::provider::SharedCredentialsProvider>,
117117
credentials_cache: Option<aws_credential_types::cache::CredentialsCache>,
118118
}
119+
impl std::fmt::Debug for Builder {
120+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121+
let mut config = f.debug_struct("Builder");
122+
config.finish()
123+
}
124+
}
119125
impl Builder {
120126
/// Constructs a config builder.
121127
pub fn new() -> Self {

0 commit comments

Comments
 (0)