1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Renderer for [`BootParameters`] (the BSS boot-parameter
//! resource).
//!
//! Called by `manta get boot-parameters`. Supported output formats:
//! **JSON only** — the nested BSS payload (kernel, initrd, params,
//! cloud-init, ...) is too deep for a useful table, so the format
//! is pinned. The `-o` flag still defaults to `"table"` for the
//! subcommand, but the renderer ignores it and always emits JSON.
use Error;
use crateBootParameters;
/// Pretty-print boot parameters as JSON.
///
/// # Errors
///
/// Returns `Err` if `serde_json::to_string_pretty` fails (only
/// possible if the wire types stop being `Serialize`, which would
/// be a compile-time break).