diff --git a/client/src/session/data.rs b/client/src/session/data.rs index 5bb4ada..aaf45e2 100644 --- a/client/src/session/data.rs +++ b/client/src/session/data.rs @@ -1,25 +1,30 @@ use serde::Deserialize; +#[derive(Debug, Deserialize)] +pub enum Permission { + GenerateInviteTokens, + PromoteUsers, +} + pub mod api { - use super::Deserialize; + use super::*; pub mod account { - use super::Deserialize; + use super::*; pub mod info { - use super::Deserialize; + use super::*; #[derive(Debug, Deserialize)] pub struct Response { pub userid: String, - // TODO: make permissions an enum - pub permissions: Vec, + pub permissions: Vec, } } } pub mod error { - use super::Deserialize; + use super::*; #[derive(Debug, thiserror::Error, Deserialize)] pub enum Error {