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
use resources::asset::Flags; /// This effect can be the result of a set options operation and represents /// the fact that an account's flags have been updated #[derive(Debug, Deserialize, Clone)] pub struct FlagsUpdated { account: String, flags: Flags, } impl FlagsUpdated { /// Creates a new FlagsUpdated effect pub fn new(account: String, flags: Flags) -> FlagsUpdated { FlagsUpdated { account, flags } } /// The public address of the account with updated flags pub fn account(&self) -> &String { &self.account } /// The flags for an account after the operations have taken place pub fn flags(&self) -> Flags { self.flags } }