Crates.io | df-fields |
lib.rs | df-fields |
version | 0.1.16 |
source | src |
created_at | 2023-01-12 07:56:53.051429 |
updated_at | 2023-03-18 08:08:49.516682 |
description | This is a shortcut tool related to database fields |
homepage | |
repository | |
max_upload_size | |
id | 756957 |
size | 74,349 |
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());
}