summaryrefslogtreecommitdiff
path: root/src/login/types.rs
blob: 7c7cbf944fefb9ae444dc99e85eeb7b1581ceccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use crate::repo::token;

#[derive(Clone, Debug)]
pub struct TokenRevoked {
    pub token: token::Id,
}

impl From<token::Id> for TokenRevoked {
    fn from(token: token::Id) -> Self {
        Self { token }
    }
}