dominus

One damus client to rule them all
git clone git://jb55.com/dominus
Log | Files | Refs | README

contacts.rs (341B)


      1 use enostr::{EventId, Profile, Pubkey};
      2 use std::collections::HashMap;
      3 
      4 pub struct Contacts {
      5     pub events: HashMap<Pubkey, EventId>,
      6     pub profiles: HashMap<Pubkey, Profile>,
      7 }
      8 
      9 impl Contacts {
     10     pub fn new() -> Contacts {
     11         Contacts {
     12             events: HashMap::new(),
     13             profiles: HashMap::new(),
     14         }
     15     }
     16 }