pub fn set_default_formats(formats: Formats)Available on crate features
json or toml or yaml only.Expand description
Set the process-wide registry, which Input::open reads through. Without
a call, the process uses Formats::builtin. Formats::open reads
through a registry of the caller’s instead.