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

Method to_json

archive/registry/src/config.rs:49–57  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

47
48impl Registry {
49 pub fn to_json(&self) -> String {
50 match serde_json::to_string(self) {
51 Ok(json) => json,
52 Err(e) => {
53 eprintln!("Failed to serialize to JSON: {e}");
54 String::new()
55 }
56 }
57 }
58}
59
60const ID: &str = "https://developer.microsoft.com/json-schemas/windows/registry/20230303/Microsoft.Windows.Registry.schema.json";

Callers 2

test_valueFunction · 0.45
test_keyFunction · 0.45

Calls 2

to_stringFunction · 0.50
newFunction · 0.50

Tested by 2

test_valueFunction · 0.36
test_keyFunction · 0.36