(values: &[SettingsOptionValue])
| 1576 | } |
| 1577 | |
| 1578 | pub fn hash_settings_values(values: &[SettingsOptionValue]) -> String { |
| 1579 | use sha2::Digest; |
| 1580 | let serialized = serde_json::to_string(values).unwrap(); |
| 1581 | hex::encode(sha2::Sha256::digest(serialized.as_bytes())) |
| 1582 | } |
| 1583 | |
| 1584 | /// A guilds config, for storing core botloader settings |
| 1585 | #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] |
no outgoing calls
no test coverage detected