pub struct TaskContinuation { /* private fields */ }Expand description
Position of the next page in one Task collection snapshot.
The cursor is a domain value, not a wire token. Transport layers encode it into their own opaque continuation representation.
Implementations§
Source§impl TaskContinuation
impl TaskContinuation
Sourcepub fn new(
resource_version: impl Into<String>,
filter: TaskFilter,
after: TaskId,
) -> ModelResult<Self>
pub fn new( resource_version: impl Into<String>, filter: TaskFilter, after: TaskId, ) -> ModelResult<Self>
Creates a domain continuation.
The resource version remains opaque here. The state store validates that it belongs to a retained snapshot when the query is executed.
§Errors
Returns ModelError::Invalid when resource_version is empty or whitespace.
Sourcepub fn resource_version(&self) -> &str
pub fn resource_version(&self) -> &str
Collection snapshot version carried by this cursor.
Sourcepub fn filter(&self) -> &TaskFilter
pub fn filter(&self) -> &TaskFilter
Filters fixed by the first page.
Trait Implementations§
Source§impl Clone for TaskContinuation
impl Clone for TaskContinuation
Source§fn clone(&self) -> TaskContinuation
fn clone(&self) -> TaskContinuation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskContinuation
impl Debug for TaskContinuation
Source§impl<'de> Deserialize<'de> for TaskContinuation
impl<'de> Deserialize<'de> for TaskContinuation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskContinuation
Source§impl PartialEq for TaskContinuation
impl PartialEq for TaskContinuation
Source§impl Serialize for TaskContinuation
impl Serialize for TaskContinuation
impl StructuralPartialEq for TaskContinuation
Auto Trait Implementations§
impl Freeze for TaskContinuation
impl RefUnwindSafe for TaskContinuation
impl Send for TaskContinuation
impl Sync for TaskContinuation
impl Unpin for TaskContinuation
impl UnsafeUnpin for TaskContinuation
impl UnwindSafe for TaskContinuation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more