Skip to content

min_len and max_len don't work for strings #13

Description

@not-my-profile
#[derive(Validate)]
struct Thing {
    #[validatron(min_len = 5)]
    pub name: String
}

fails with:

&std::string::String is not an iterator
the trait Iterator is not implemented for &std::string::String
required because of the requirements on the impl of IntoIterator for &std::string::String

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions