(resolvers: impl IntoIterator<Item = &'a Self>)
| 207 | } |
| 208 | |
| 209 | pub fn merge<'a>(resolvers: impl IntoIterator<Item = &'a Self>) -> Option<Self> { |
| 210 | let mut by_placeholder = HashMap::new(); |
| 211 | for resolver in resolvers { |
| 212 | by_placeholder.extend(resolver.by_placeholder.clone()); |
| 213 | } |
| 214 | if by_placeholder.is_empty() { |
| 215 | None |
| 216 | } else { |
| 217 | Some(Self { by_placeholder }) |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | /// Resolve a placeholder string to the real secret value. |
| 222 | /// |