pub trait ProjectionCursor {
// Required methods
fn get_cursor(&self) -> Value;
fn set_cursor(&mut self, v: &Value);
}Expand description
Trait for types that track their cursor position in the event stream.
This trait is typically derived using the #[evento::projection] macro.
Required Methods§
Sourcefn get_cursor(&self) -> Value
fn get_cursor(&self) -> Value
Returns the current cursor position.
Sourcefn set_cursor(&mut self, v: &Value)
fn set_cursor(&mut self, v: &Value)
Sets the cursor position.