Use for `in/not_in` validation to convert the slices to strings.
(slice: &[&str])
| 4 | |
| 5 | /// Use for `in/not_in` validation to convert the slices to strings. |
| 6 | pub fn str_slice_to_string(slice: &[&str]) -> Vec<String> { |
| 7 | slice.iter().map(|el| String::from(*el)).collect() |
| 8 | } |
| 9 | |
| 10 | #[derive(Debug, Deserialize, Validify, Payload)] |
| 11 | struct HasVec { |