forked from loafle/openapi-generator-original
I already contributed proper enum supports a few weeks ago, but somehow missed actually using them when they're used as a property. This PR fixes that. I also took the liberty of fixing a bunch of unused warnings. * Make sure we use the enum types in Rust * Fix unused warnings in Rust and regenerate samples * Use crate:: import path that works both with Rust 2015 and 2018 * Derive PartialEq and Eq in generated Rust structs and enums