We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c057a6e commit 8e112a8Copy full SHA for 8e112a8
ethcontract/src/transaction/kms.rs
@@ -23,13 +23,23 @@ use web3::{
23
use crate::errors::ExecutionError;
24
25
/// An AWS KMS account abstraction.
26
-#[derive(Clone, Debug)]
+#[derive(Clone)]
27
pub struct Account {
28
client: Client,
29
key_id: String,
30
address: Address,
31
}
32
33
+impl std::fmt::Debug for Account {
34
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35
+ f.debug_struct("Account")
36
+ .field("key_id", &self.key_id)
37
+ .field("address", &self.address)
38
+ // Skip the client field as it contains too verbose output
39
+ .finish()
40
+ }
41
+}
42
+
43
impl Account {
44
/// Creates a new KMS account.
45
pub async fn new(config: Config, key_id: &str) -> Result<Self, Error> {
0 commit comments