claw-crypto-interface 0.3.0

Types and traits for the claw-crypto crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub type JwtResult<T> = Result<T, JwtError>;

#[derive(Debug, PartialEq, Clone)]
pub enum JwtError {
    Serde,
    Expired,
    Invalid,
    Time,
}

impl<T> From<JwtError> for JwtResult<T> {
    fn from(error: JwtError) -> Self {
        Err(error)
    }
}