Can I implement ResponseError
trait for crate rustis
?
#3233
Answered
by
robjtede
bioinformatist
asked this question in
Ideas
-
As a user-friendly Redis client, |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Jan 3, 2024
Replies: 1 comment 3 replies
-
Creating newtype/enum wrappers that semantically reflect the meaning of error responses is idiomatic for Actix Web apps. Would you like to expand on what it is you're proposing? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh I see. No, I would not accept a PR for this. It would be more appropriate to submit this PR to
rustis
. However, I stand by the idea that semantic newtype wrappers are the best method currently available to applications to suit their particular needs.These external crates are core to the operation of the framework.