Rust Driver, serialize enum into text