1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/// This effect can be the result of a set options operation and represents /// the fact that a signer has been updated for an account. #[derive(Debug, Deserialize, Clone)] pub struct Updated { account: String, public_key: String, weight: u8, } impl Updated { /// Updates a Signer pub fn new(account: String, public_key: String, weight: u8) -> Updated { Updated { account, public_key, weight, } } /// The public address of the account with an updated signer pub fn account(&self) -> &String { &self.account } /// The public key of the updated signer pub fn public_key(&self) -> &String { &self.public_key } /// The weight of the updated signature pub fn weight(&self) -> u8 { self.weight } }