covert_types/auth.rs
1#[derive(Debug, PartialEq, Clone)]
2pub enum AuthPolicy {
3 /// Authorized to access the requested path with operation as long
4 /// as the given `Route` does not require `Root` level privilege.
5 Authenticated,
6 /// Anyone without a token.
7 Unauthenticated,
8}
9
10impl Default for AuthPolicy {
11 fn default() -> Self {
12 Self::Authenticated
13 }
14}