title: getting row data from sql::query_as
body: <p>Im trying to use sqlx to get data from a mysql db. I have the following:</p>
  <pre><code>#[derive(Debug, PartialEq, Eq, sqlx::FromRow)]
      struct Room {
          name: String
      }
  
      let mut stream = sqlx::query_as::&lt;_, Room&gt;(r#&quot;SELECT name FROM rooms&quot;#)
          .fetch_all(&amp;db.pool).await;
  
      for row in stream {
          println!(&quot;{:?}&quot;,row);
      }
  </code></pre>
  <p>So in stream there is a vector and each index seems to hold the actual query results. So</p>
  <pre><code>stream[0] = [Room{name: &quot;Room 1&quot;}, Room{name: &quot;Room 3&quot;}, Room{name: &quot;Room 2&quot;}]
  </code></pre>
  <p>So in order to get at that data i have to loop through stream[0]. Is there a way to have that data on the value returned from the query without the explicit index?</p>