in azure-kusto-data/src/operations/query.rs [135:154]
fn into_future(self) -> QueryRun {
let this = self.clone();
Box::pin(async move {
let response = self.into_response().await?;
Ok(match this.kind {
QueryKind::Management => {
<KustoResponseDataSetV1 as TryFrom<HttpResponse>>::try_from(response)
.map_ok(KustoResponse::V1)
.await?
}
QueryKind::Query => {
<KustoResponseDataSetV2 as TryFrom<HttpResponse>>::try_from(response)
.map_ok(KustoResponse::V2)
.await?
}
})
})
}