mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-22 05:35:10 +00:00
Iterating on project format to make it friendlier
This commit is contained in:
11
server/src/session_id.rs
Normal file
11
server/src/session_id.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
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())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user