Added logout support, store user data
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
#[derive(serde::Deserialize, serde::Serialize)]
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct ClientUser {
|
||||
pub id: i64,
|
||||
pub server_address: String,
|
||||
pub username: String,
|
||||
pub email: String,
|
||||
pub avatar: String,
|
||||
//pub avatar: String,
|
||||
pub servers: Vec<String>,
|
||||
pub token: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct ClientServer {
|
||||
pub server_id: String,
|
||||
pub domain: String,
|
||||
pub port: u16,
|
||||
pub is_admin: bool,
|
||||
pub is_owner: bool,
|
||||
}
|
||||
Reference in New Issue
Block a user