MCPcopy Create free account
hub / github.com/Botloader/botloader / hash_settings_values

Function hash_settings_values

components/stores/src/config.rs:1578–1582  ·  view source on GitHub ↗
(values: &[SettingsOptionValue])

Source from the content-addressed store, hash-verified

1576}
1577
1578pub 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)]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected