(
val: impl Into<Option<String>>,
)
| 270 | } |
| 271 | |
| 272 | pub(crate) fn parse_serde_case( |
| 273 | val: impl Into<Option<String>>, |
| 274 | ) -> Option<convert_case::Case<'static>> { |
| 275 | val.into().and_then(|x| { |
| 276 | RENAME_RULES |
| 277 | .iter() |
| 278 | .find(|(name, _)| name == &x) |
| 279 | .map(|(_, rule)| *rule) |
| 280 | }) |
| 281 | } |
| 282 | |
| 283 | /// Parse a number automaticly handling radix like rust does. |
| 284 | /// 0x - Hex notation |
no outgoing calls
no test coverage detected