add contact struct
1 files changed, 7 insertions(+), 0 deletions(-) M src/lib.rs
M src/lib.rs => src/lib.rs +7 -0
@@ 11,5 11,12 @@ pub use addr::SufecAddr; pub use message::{Message, MessageContent}; pub use error::ServerError; pub use server::{PORT, MAX_FILE_SIZE, connect, send, login, ListeningConn}; use prelude::*; pub const MAX_HASHES_PER_MESSAGE: usize = u8::MAX as usize; #[derive(Serialize, Deserialize, Clone)] pub struct Contact { pub name: String, pub addr: SufecAddr, }