(os: SupportedOs)
| 76 | |
| 77 | impl From<SupportedOs> for SupportedOsSerde { |
| 78 | fn from(os: SupportedOs) -> Self { |
| 79 | SupportedOsSerde { |
| 80 | os: os.id().to_string(), |
| 81 | os_version: os.version().unwrap_or(UNKNOWN_OS_VERSION).to_string(), |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /// Linux distribution, identified by the `sysinfo` distribution id. |