| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#; |
| 2 | |
| 3 | use superrust-analyzer cargo bottom 0.14.9 options/config/::IgnoreListrust-analyzer cargo bottom 0.14.9 options/config/ignore_list/IgnoreList#; |
| 4 | |
| 5 | /// Whether the disk graph legend labels use device names or mount points. |
| 6 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)] |
| 7 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 8 | #[serde(rename_all = "snake_case")] |
| 9 | pub enum DiskGraphLegendrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend# { |
| 10 | /// Label entries by kernel device name (e.g. `sda`, `nvme0n1`). |
| 11 | #[defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/default:] |
| 12 | Diskrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend#Disk#, |
| 13 | /// Label entries by mount point (e.g. `/`, `/home`). |
| 14 | Mountrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend#Mount#, |
| 15 | } |
| 16 | |
| 17 | /// Disk I/O graph configuration. |
| 18 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 19 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 20 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 21 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) struct DiskIoGraphConfigrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig# { |
| 22 | /// Whether to show the read rate line. Defaults to true. |
| 23 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) show_readrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#show_read.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 24 | |
| 25 | /// Whether to show the write rate line. Defaults to true. |
| 26 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) show_writerust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#show_write.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 27 | |
| 28 | /// Whether to label legend entries by device name or mount point. Defaults to disk name. |
| 29 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) legendrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#legend.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<DiskGraphLegendrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend#>, |
| 30 | |
| 31 | /// Whether to use a logarithmic scale on the y-axis. Defaults to false. |
| 32 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) use_logrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#use_log.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 33 | |
| 34 | /// Where to position the legend within the widget. |
| 35 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) legend_positionrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#legend_position.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 36 | |
| 37 | /// An optional list of device names to include or exclude. |
| 38 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) name_filterrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#name_filter.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<IgnoreListrust-analyzer cargo bottom 0.14.9 options/config/ignore_list/IgnoreList#>, |
| 39 | |
| 40 | /// Whether to include block devices that aren't currently mounted (currently Linux only). Defaults to false. |
| 41 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) include_unmountedrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskIoGraphConfig#include_unmounted.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 42 | } |