forked from rojo-rbx/rojo
12 lines
249 B
Rust
12 lines
249 B
Rust
use serde::{Deserialize, Serialize};
|
|
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())
|
|
}
|
|
}
|