Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemente HasLen trait #1178

Open
aimericsr opened this issue Nov 8, 2023 · 0 comments
Open

implemente HasLen trait #1178

aimericsr opened this issue Nov 8, 2023 · 0 comments

Comments

@aimericsr
Copy link

aimericsr commented Nov 8, 2023

I write an axum application and I'm using the validator crate to validate the JSON body. I would like to use Secrete<String> for password to not leak sensitive information when I log the request but validator require that the type implement HasLen. I could implement it myself but in Rust we can't implement trait on external struct.

I was wondering if this was a security reason or if it is possible to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant