MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / merge

Method merge

crates/openshell-core/src/secrets.rs:209–219  ·  view source on GitHub ↗
(resolvers: impl IntoIterator<Item = &'a Self>)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

http_routerFunction · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected