many improvements
This commit is contained in:
16
src/contacts.rs
Normal file
16
src/contacts.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use enostr::{EventId, Profile, Pubkey};
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub struct Contacts {
|
||||
pub events: HashMap<Pubkey, EventId>,
|
||||
pub profiles: HashMap<Pubkey, Profile>,
|
||||
}
|
||||
|
||||
impl Contacts {
|
||||
pub fn new() -> Contacts {
|
||||
Contacts {
|
||||
events: HashMap::new(),
|
||||
profiles: HashMap::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user