MCPcopy Create free account
hub / github.com/PowerShell/DSC / remove_all

Method remove_all

resources/sshdconfig/src/canonical_properties.rs:78–82  ·  view source on GitHub ↗

Remove all canonical properties from a map.

(map: &mut Map<String, Value>)

Source from the content-addressed store, hash-verified

76
77 /// Remove all canonical properties from a map.
78 pub fn remove_all(map: &mut Map<String, Value>) {
79 for prop in CanonicalProperty::all() {
80 map.remove(prop.as_str());
81 }
82 }
83
84 /// Extract and validate a boolean canonical property from a map.
85 ///

Callers

nothing calls this directly

Calls 2

removeMethod · 0.80
as_strMethod · 0.80

Tested by

no test coverage detected