mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-17 03:26:20 +00:00
conf/accounts.rs: add hash() method
This commit is contained in:
parent
688060ceb6
commit
d6ef3567f4
@ -1010,6 +1010,10 @@ impl Account {
|
||||
&self.name
|
||||
}
|
||||
|
||||
pub fn hash(&self) -> AccountHash {
|
||||
self.hash
|
||||
}
|
||||
|
||||
pub fn load(&mut self, mailbox_hash: MailboxHash) -> result::Result<(), usize> {
|
||||
if mailbox_hash == 0 {
|
||||
return Err(0);
|
||||
|
Loading…
Reference in New Issue
Block a user