bunnyapp-license 0.1.2

License validation SDK for Bunny subscriptions
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde::{Deserialize, Serialize};
use serde_json::Value;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LicenseClaims {
    pub sub: Option<String>,
    pub iat: Option<u64>,
    pub exp: u64,
    /// Entitlements granted to this customer.
    pub subscription: Value,
}