blob: 75f4c3be1861e1f4ae5dce331b710d507c4e7d5e (
plain) (
tree)
|
|
use std::collections::HashMap;
use jid::BareJID;
use reactive_stores::Store;
use crate::contact::MacawContact;
#[derive(Store, Clone)]
pub struct Roster {
#[store(key: BareJID = |(jid, _)| jid.clone())]
contacts: HashMap<BareJID, MacawContact>,
}
impl Roster {
pub fn new() -> Self {
Self {
contacts: HashMap::new(),
}
}
}
|