derive Eq and Clone impls where applicable
auto merge of #5575 : apasel422/rust/simplify-impls, r=bstrie