Add an IntoIterator for FormMetadata

This commit is contained in:
Charlie Marsh 2025-06-29 14:48:45 -04:00
parent 17b7eec287
commit b41d0872bd

View file

@ -758,6 +758,14 @@ impl FormMetadata {
}
}
impl<'a> IntoIterator for &'a FormMetadata {
type Item = &'a (&'a str, String);
type IntoIter = std::slice::Iter<'a, (&'a str, String)>;
fn into_iter(self) -> Self::IntoIter {
self.iter()
}
}
/// Build the upload request.
///
/// Returns the request and the reporter progress bar id.