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

Method write_json

lib/dsc-lib/src/progress.rs:205–211  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

203 }
204
205 fn write_json(&mut self) {
206 if let Ok(json) = serde_json::to_string(&self.progress_value) {
207 eprintln!("{json}");
208 } else {
209 trace!("{}", t!("progress.failedToSerialize", json = self.progress_value : {:?}));
210 }
211 }
212}

Callers 2

write_incrementMethod · 0.80
write_activityMethod · 0.80

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected