mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 05:06:29 +00:00
11 lines
248 B
Rust
11 lines
248 B
Rust
use serde::{Serialize, Deserialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
|
pub struct SessionId(Uuid);
|
|
|
|
impl SessionId {
|
|
pub fn new() -> SessionId {
|
|
SessionId(Uuid::new_v4())
|
|
}
|
|
} |