remove OptionsLimit type
@@ -26,16 +26,6 @@ impl ManifestResource {
}
}
-#[derive(Clone, PartialEq, Serialize, Deserialize)]
-#[cfg_attr(test, derive(Debug))]
-pub struct OptionsLimit(pub usize);
-
-impl Default for OptionsLimit {
- fn default() -> OptionsLimit {
- OptionsLimit(1)
- }
-}
-
#[derive(Default, Clone, PartialEq, Serialize, Deserialize)]
#[cfg_attr(test, derive(Debug))]
#[serde(rename_all = "camelCase")]
@@ -45,7 +35,7 @@ pub struct ManifestExtraProp {
pub is_required: bool,
pub options: Option<Vec<String>>,
#[serde(default)]
- pub options_limit: OptionsLimit,
+ pub options_limit: usize,
}
#[derive(Clone, PartialEq, Serialize, Deserialize)]
