Private
Public Access
1
0

proj: Fix warnings

This commit is contained in:
2025-01-20 22:13:44 -08:00
parent 5d3d2f194a
commit bfc6fdddc1
5 changed files with 15 additions and 7 deletions

View File

@@ -10,18 +10,21 @@ use hyper::http::HeaderValue;
use serde::Deserialize;
#[derive(Deserialize, Debug, Clone)]
#[allow(dead_code)]
struct JwtHeader {
alg: String,
typ: String,
}
#[derive(Deserialize, Debug, Clone)]
#[allow(dead_code)]
enum ExpValue {
Integer(i64),
String(String),
}
#[derive(Deserialize, Debug, Clone)]
#[allow(dead_code)]
struct JwtPayload {
exp: serde_json::Value,
iss: Option<String>,
@@ -29,6 +32,7 @@ struct JwtPayload {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct JwtToken {
header: JwtHeader,
payload: JwtPayload,