Skip to content

Remove need for ctx param for custom validators on context-less structs #104

@jprochazk

Description

@jprochazk

The following should be possible:

#[derive(garde::Validate)]
struct Foo {
    #[garde(custom(f))]
    v: u32,
}

fn f(v: &u32) -> garde::Result { todo!() }

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