covert-types 0.1.3

Covert type definitions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, PartialEq, Clone)]
pub enum AuthPolicy {
    /// Authorized to access the requested path with operation as long
    /// as the given `Route` does not require `Root` level privilege.
    Authenticated,
    /// Anyone without a token.
    Unauthenticated,
}

impl Default for AuthPolicy {
    fn default() -> Self {
        Self::Authenticated
    }
}