Keats / validator

Simple validation for Rust structs
MIT License
2.07k stars 151 forks source link

Add ValidateRegex Implementation For Box, Rc, and Arc #348

Closed Kailokk closed 3 months ago

Kailokk commented 3 months ago

Added a blanket implementation where the inner type T for these container types implements ValidateRegex.

These types are sometimes used in place of String where the mutability that String provides is not necessary.

Keats commented 3 months ago

Looks good. Do you run into the same issue with other validators?

Kailokk commented 3 months ago

Looks good. Do you run into the same issue with other validators?

I haven't so far, i've been hoping to to take a proper look when i had the chance, this one just came up in something i was working on.

Kailokk commented 3 months ago

@Keats thanks for the approval. I don't have the permissions to enact the merge, so i will leave that to you?

Keats commented 3 months ago

Yep that's good, I'll merge/release soon

Kailokk commented 3 months ago

Awesome, thank you so much for your time, and this ever useful library