mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Iterating on project format to make it friendlier
This commit is contained in:
parent
a29c4f2b65
commit
60c5c2d344
8 changed files with 86 additions and 73 deletions
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())
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue