df-fields 字段规范工具

功能

实例

rust fn main() { let data = df_fields::str::Str::new(true, "str", "string", 6, "carry").field(); assert_eq!(r#"{ "require":true, "field":"str", "mode":"string", "title":"string", "length":6, "def":"carry", "dec":"" }"#, data.to_string()); }