You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/queries/result.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,16 +21,16 @@ return a `QueryResult` with rows represented as `Option<Vec<Row>>`.
21
21
22
22
## Parsing using convenience methods
23
23
24
-
By calling [`QueryResult::into_rows_result`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryResult.html#method.into_rows_result),
25
-
one can obtain [`QueryRowsResult`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryRowsResult.html).
24
+
By calling [`QueryResult::into_rows_result`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryResult.html#method.into_rows_result),
25
+
one can obtain [`QueryRowsResult`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryRowsResult.html).
26
26
`QueryRowsResult` provides convenience methods for parsing rows.
27
27
Here are a few of them:
28
28
*`rows::<RowT>()` - returns the rows parsed as the given type
29
29
*`maybe_first_row::<RowT>()` - returns the first received row or `None` if there are no rows
30
30
*`first_row::<RowT>()` - returns the first received row; fails if there are no rows
31
31
*`single_row::<RowT>()` - same as `first_row`, but fails when there is more than one row
32
32
33
-
Additionally, [`QueryResult`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryResult.html) has a method `result_not_rows()`, which ensures that query response was not `rows` and thus helps avoid bugs.
33
+
Additionally, [`QueryResult`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryResult.html) has a method `result_not_rows()`, which ensures that query response was not `rows` and thus helps avoid bugs.
0 commit comments