recorder

Crates.iorecorder
lib.rsrecorder
version0.2.1
sourcesrc
created_at2022-04-25 18:20:21.222039
updated_at2023-01-06 04:28:46.669415
descriptionGenerate data-only structs with utilities easily
homepagehttps://github.com/kotx/recorder
repositoryhttps://github.com/kotx/recorder.git
max_upload_size
id574037
size9,986
Kot C (kotx)

documentation

README

recorder

Simple record types for Rust

Getting Started

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)
}
Commit count: 9

cargo fmt