15
15
unreachable_pub
16
16
) ]
17
17
18
+ use std:: fmt;
18
19
use std:: time:: SystemTime ;
19
20
20
21
pub mod sign;
@@ -29,7 +30,6 @@ pub mod http_request;
29
30
30
31
/// Parameters to use when signing.
31
32
#[ non_exhaustive]
32
- #[ derive( Debug ) ]
33
33
pub struct SigningParams < ' a , S > {
34
34
/// Access Key ID to use.
35
35
pub ( crate ) access_key : & ' a str ,
@@ -49,6 +49,20 @@ pub struct SigningParams<'a, S> {
49
49
pub ( crate ) settings : S ,
50
50
}
51
51
52
+ impl < ' a , S : fmt:: Debug > fmt:: Debug for SigningParams < ' a , S > {
53
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
54
+ f. debug_struct ( "SigningParams" )
55
+ . field ( "access_key" , & "** redacted **" )
56
+ . field ( "secret_key" , & "** redacted **" )
57
+ . field ( "security_token" , & "** redacted **" )
58
+ . field ( "region" , & self . region )
59
+ . field ( "service_name" , & self . service_name )
60
+ . field ( "time" , & self . time )
61
+ . field ( "settings" , & self . settings )
62
+ . finish ( )
63
+ }
64
+ }
65
+
52
66
impl < ' a , S : Default > SigningParams < ' a , S > {
53
67
/// Returns a builder that can create new `SigningParams`.
54
68
pub fn builder ( ) -> signing_params:: Builder < ' a , S > {
0 commit comments