pub fn get_hash<T: Hash>() -> u32Expand description
Retrieve a compile-time constant hash for a message type.
This hash uniquely identifies the type and can be used for version tracking, serialization metadata, or message validation in distributed environments.
Usage:
use motorcortex_rust::get_hash;
use motorcortex_rust::SessionTokenMsg;
fn main() {
let hash = get_hash::<SessionTokenMsg>();
println!("Hash for SessionTokenMsg: {hash:#x}");
}