Skip to content

implement Deserialize for Regex? #532

Closed
@matthiasbeyer

Description

@matthiasbeyer

This is somewhat related to #258

I am thinking about the following usecase: When I have a application where I can define regexes in a config file and the app reads the config on boot, I cannot use serde_derive with Regex:

#[derive(Deserialize)]
struct Config {
    something: Regex,
}

But it would be nice to have that possibility. What do you think? Or is there a boilerplate-free way around this I do not see right now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions