diff --git a/proxmox-schema/src/schema.rs b/proxmox-schema/src/schema.rs index d90f44a3..d073f369 100644 --- a/proxmox-schema/src/schema.rs +++ b/proxmox-schema/src/schema.rs @@ -121,6 +121,28 @@ impl IntoIterator for ParameterError { } } +impl FromIterator<(String, Error)> for ParameterError { + fn from_iter(iter: T) -> Self + where + T: IntoIterator, + { + let mut this = Self::new(); + this.extend(iter); + this + } +} + +impl FromIterator<(&str, Error)> for ParameterError { + fn from_iter(iter: T) -> Self + where + T: IntoIterator, + { + let mut this = Self::new(); + this.extend(iter); + this + } +} + /// Data type to describe boolean values #[derive(Debug)] #[cfg_attr(feature = "test-harness", derive(Eq, PartialEq))]