Rust specific changes

Added "nopartials" option - to specify that a partials class shouldn't
be created
Added warning disable pragma
Added ToProto member , write to stream