use serde::{Deserialize, Serialize};
use super::{license_signing_key::LicenseSigningKey, licensing_endpoints::LicensingEndpoints};
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
#[non_exhaustive]
pub struct LicenseSigningKeysResponse {
pub endpoints: LicensingEndpoints,
pub keys: Vec<LicenseSigningKey>,
#[serde(flatten)]
pub extra: serde_json::Map<String, serde_json::Value>,
}
impl LicenseSigningKeysResponse {
#[must_use]
pub fn new(endpoints: LicensingEndpoints, keys: Vec<LicenseSigningKey>) -> Self {
Self {
endpoints,
keys,
extra: serde_json::Map::new(),
}
}
}