diff --git a/src/api/v2/asset.rs b/src/api/v2/asset.rs index e406275..2d6afbd 100644 --- a/src/api/v2/asset.rs +++ b/src/api/v2/asset.rs @@ -97,6 +97,12 @@ pub enum Status { /// The asset is inactive. #[serde(rename = "inactive")] Inactive, + /// Any other asset status that we have not accounted for. + /// + /// Note that having any such unknown asset class should be considered + /// a bug. + #[serde(other, rename(serialize = "unknown"))] + Unknown, } impl AsRef for Status { @@ -105,6 +111,7 @@ impl AsRef for Status { match *self { Status::Active => "active", Status::Inactive => "inactive", + Status::Unknown => "unknown", } } }