forked from rojo-rbx/rojo
11 lines
255 B
Rust
11 lines
255 B
Rust
use serde_derive::{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())
|
|
}
|
|
} |