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: README.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,10 +125,7 @@ let result = client
125
125
.read_events("/books/42", Some(
126
126
ReadEventsOptions {
127
127
recursive:false,
128
-
from_latest_event:None,
129
-
order:None,
130
-
lower_bound:None,
131
-
upper_bound:None,
128
+
...Default::default(),
132
129
}
133
130
))
134
131
.await;
@@ -162,7 +159,7 @@ This also allows you to read *all* events ever written. To do so, provide `/` as
162
159
163
160
#### Reading in Anti-Chronological Order
164
161
165
-
By default, events are read in chronological order. To read in anti-chronological order, provide the `order` option and set it using the `Antichronological`Ordering:
162
+
By default, events are read in chronological order. To read in anti-chronological order, provide the `order` option and set it using the `Antichronological`ordering:
166
163
167
164
```rust
168
165
letresult=client
@@ -176,7 +173,7 @@ let result = client
176
173
.await;
177
174
```
178
175
179
-
*Note that you can also use the `Chronological`Ordering to explicitly enforce the default order.*
176
+
*Note that you can also use the `Chronological`ordering to explicitly enforce the default order.*
180
177
181
178
#### Specifying Bounds
182
179
@@ -207,7 +204,7 @@ let result = client
207
204
208
205
To read starting from the latest event of a given type, provide the `from_latest_event` option and specify the subject, the type, and how to proceed if no such event exists.
209
206
210
-
Possible options are `ReadNothing`, which skips reading entirely, or `ReadyEverything`, which effectively behaves as if `from_latest_event` was not specified:
207
+
Possible options are `ReadNothing`, which skips reading entirely, or `ReadEverything`, which effectively behaves as if `from_latest_event` was not specified:
0 commit comments