potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::Deserialize;
use serde::Serialize;

/// Represents groups that users and projects can be part of.
#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
#[cfg_attr(any(test, feature = "fake"), derive(fake::Dummy))]
pub struct Group(String);

impl Group {
    pub fn new(name: &str) -> Self {
        Self(name.to_owned())
    }
}