rust-axum-jwt-auth icon indicating copy to clipboard operation
rust-axum-jwt-auth copied to clipboard

Using Trait Into/TryFrom for changing struct between User and FilterUser

Open wrenix opened this issue 1 year ago • 0 comments

https://doc.rust-lang.org/stable/rust-by-example/conversion/try_from_try_into.html

Do not implement a function like this: https://github.com/wpcodevo/rust-axum-jwt-auth/blob/040ae80ca0c605242436630073271589b75c38bc/src/handler.rs#L194-L205

wrenix avatar Mar 19 '24 15:03 wrenix