structstruck
structstruck copied to clipboard
Add support for `type` declarations
Hey, it'd be neat if you could do types with structstruck too. Something like this:
struct UserMap {
user_id: type UserId = u64,
contact: struct Contact {
email: type Email = String,
phone: type PhoneNumber = String,
}
}