This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct ExampleClient { } | |
impl ExampleClient { | |
// calling .iter().map(|s| s.as_str()) on a Vec<String> | |
// and passing it into the function with this signature causes a | |
// compile error in poem_openapi's macro that compiles the server, | |
// about Send's implementation not being general enough for &sqlx::Pool<_> and &ShardConfig, | |
// saying they're only implemented for some &'0 T | |
pub async fn get_with_str_iter<T>( | |
&self, |
OlderNewer