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
/// This effect can be the result of a set options operation and represents /// the fact that an account's home domain has changed #[derive(Debug, Deserialize, Clone)] pub struct HomeDomainUpdated { account: String, home_domain: String, } impl HomeDomainUpdated { /// Creates a HomeDomainUpdated effect pub fn new(account: String, home_domain: String) -> HomeDomainUpdated { HomeDomainUpdated { account, home_domain, } } /// The public address of the account whose home_domain was updated pub fn account(&self) -> &String { &self.account } /// The home domain used for reverse federation lookup pub fn home_domain(&self) -> &String { &self.home_domain } }