Adding generic for payload type to PgNotification #4456
Closed
LucaCappelletti94
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
This is expect, because the payload is really just a string in the general case. It might be the case that the string often contains a json payload, but that's something applications build on top of this feature and therefore something that should be implemented in these applications itself. |
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
-
At this time, PgNotification does not have a serde Deserializable generic which defines the type of the payload, but it is left to a String. Would it be reasonable to add it?
diesel/diesel/src/pg/backend.rs
Lines 164 to 176 in 94d5a0d
Beta Was this translation helpful? Give feedback.
All reactions