authorized 0.1.1

Authorized struct's fields
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Scope;
use crate::UnAuthorizedFields;

#[derive(PartialEq, Debug)]
pub struct AuthorizedResult<'a, T> {
    pub input_scope: Scope,
    pub inner: T,
    pub status: AuthorizationStatus,
    pub unauthorized_fields: UnAuthorizedFields<'a>,
}

#[derive(PartialEq, Debug)]
pub enum AuthorizationStatus {
    Authorized,
    UnAuthorized,
}