freechat/server/src/payload.rs
shockrah 8cbfa9520e new users no longer contain optional fields
only using completely necessary information
2020-03-08 19:20:08 -07:00

14 lines
465 B
Rust

/* Module containg various structure which we use to pass back
* and forth from client/server as auth tokens
*/
// This structure allows us to provide some critical data for the client to reconnect to
// the server without having to go through a sign in process everytime
#[derive(Serialize)]
pub struct NewUserInfo {
pub userid: u64, // userid which later will be discoverable via the
pub username: String,
pub key: String,
pub valid: bool
}