Crates.io | recorder |
lib.rs | recorder |
version | 0.2.1 |
source | src |
created_at | 2022-04-25 18:20:21.222039 |
updated_at | 2023-01-06 04:28:46.669415 |
description | Generate data-only structs with utilities easily |
homepage | https://github.com/kotx/recorder |
repository | https://github.com/kotx/recorder.git |
max_upload_size | |
id | 574037 |
size | 9,986 |
Simple record types for Rust
Here's a simple example:
#[recorder::record] // this struct will be #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MyRecord {
a: String, // this will be `pub`
b: u8, // this too!
c: Vec<String>, // and this!
#[record(skip)] d: String // this field will be preserved (private by default)
}