pub struct StoredQuery {
pub after: Option<EventId>,
pub print_id: Option<PrintId>,
pub limit: Option<u32>,
}Expand description
One read of the event log in the order the store stored it.
The order is the store’s own sequence rather than any field of the
record: received_at is the instant its producer stamped, which a late
arrival can carry from before an event stored ahead of it, so a reader
following the log by it would skip what arrived late. Identifiers are not
that order either, because they are minted by whoever appended them.
Fields§
§after: Option<EventId>The event to read after, exclusive. Absent with a print, the read starts at that print’s first event; absent without one, at the first event stored.
print_id: Option<PrintId>The print to scope to: its own events and every event that belongs to no print. Absent, every event.
limit: Option<u32>How many events to answer; absent means DEFAULT_HISTORY_WINDOW.
Implementations§
Source§impl StoredQuery
impl StoredQuery
Sourcepub fn resolved_limit(&self) -> Result<u32, StoreError>
pub fn resolved_limit(&self) -> Result<u32, StoreError>
The limit this query resolves to.
§Errors
Returns StoreError::LimitRefused when the limit asked for is above
MAX_HISTORY_LIMIT.