1 2 3 4 5 6 7 8 9 10 11 12
use std::ops::Deref; #[derive(Debug)] pub struct AccountID(pub String); impl Deref for AccountID { type Target = String; fn deref(&self) -> &Self::Target { &self.0 } }