acme_chains/controllers/accounts/
wallet.rs1#[derive(Clone, Debug, Hash, PartialEq, serde::Deserialize, serde::Serialize)]
9pub struct Wallet {
10 assets: Vec<String>,
11 network: String,
12}
13
14impl Wallet {
15 pub fn constructor(assets: Vec<String>, network: String) -> Self {
16 Self { assets, network }
17 }
18}
19
20impl std::fmt::Display for Wallet {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 write!(
23 f,
24 "Wallet(assets={:#?}, network={:#?})",
25 self.assets, self.network
26 )
27 }
28}