Use constants and enums in Rust wrapper