Skip to content

kotx/recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

Generate data-only structs with utilities easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages