Support Container attributes rename_all only for Serialize or Deserialize

This commit is contained in:
vinoca
2018-12-19 09:46:52 +08:00
parent 5c24f0f0f3
commit 0dae5db30e
3 changed files with 105 additions and 22 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ use std::str::FromStr;
use self::RenameRule::*;
/// The different possible ways to change case of fields in a struct, or variants in an enum.
#[derive(PartialEq)]
#[derive(PartialEq, Copy, Clone)]
pub enum RenameRule {
/// Don't apply a default rename rule.
None,