mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-28 20:34:54 +02:00
Use adjacently tagged enum for resource class keys in api. (#141)
This commit is contained in:
@@ -1601,6 +1601,7 @@ impl ResourceClassInfo {
|
||||
/// Contains the current key status for a resource class.
|
||||
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[serde(tag = "t", content = "c")]
|
||||
pub enum ResourceClassKeysInfo {
|
||||
Pending(PendingKeyInfo),
|
||||
Active(CurrentKeyInfo),
|
||||
|
||||
Reference in New Issue
Block a user