api: FromConn for serde_json::Value and querystrong::QueryStrong - #359
api: FromConn for serde_json::Value and querystrong::QueryStrong#359jbr wants to merge 1 commit into
Conversation
Codecov Report
@@ Coverage Diff @@
## main #359 +/- ##
==========================================
- Coverage 45.25% 45.20% -0.05%
==========================================
Files 156 156
Lines 6057 6063 +6
==========================================
Hits 2741 2741
- Misses 3316 3322 +6
|
|
I just encountered a case where it would have been nice to have support for QueryStrong. |
The reason I haven't moved more decisively on this is until there can be a const generic str, the FromConn will really just be fn api_handler(conn: &mut Conn, query: Query<Path = "name[first]">) {…}or whatever that syntax eventually looks like, where Path is the string representation of a Convince me it's worth the dependency and cargo feature to make |
|
@jbr I don't think it's worth the slight brevity in getting the entire query string. However, I think it'd be worth it if you could write something like Separate from that, I'd also love to have simple support for cases like |
No description provided.