Skip to content

Support cloning #40

@egdtg

Description

@egdtg

It would be very useful if the types provided by this crate supported cloning. This way structs could simply derive Clone:

#[derive(Clone, Debug, Deserialize)]
struct Human {
    name: NonEmptyString,
    age: MinMaxU8<18, 80>,
    friends: NonEmptyVec<String>,
}

This is actually the only reason why I'm currently using refined_type - because I need to clone my data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions