You've already forked AstralRinth
forked from didirus/AstralRinth
* Subpackage common -> ariadne * add common * Remove build * only build labrinth * common * set sqlx offline * copy dirs * Fix build
16 lines
426 B
Rust
16 lines
426 B
Rust
use super::ids::Base62Id;
|
|
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Copy, Clone, PartialEq, Eq, Serialize, Deserialize, Debug, Hash)]
|
|
#[serde(from = "Base62Id")]
|
|
#[serde(into = "Base62Id")]
|
|
pub struct UserId(pub u64);
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct UserStatus {
|
|
pub user_id: UserId,
|
|
pub profile_name: Option<String>,
|
|
pub last_update: DateTime<Utc>,
|
|
}
|