pub struct TaskListQuery {
pub filters: TaskFilters,
pub limit: u32,
pub cursor: Option<String>,
}Expand description
One bounded read. Cursors bind the scope and filters, but allow a new page size.
Fields§
§filters: TaskFilters§limit: u32§cursor: Option<String>Implementations§
Source§impl TaskListQuery
impl TaskListQuery
Sourcepub fn validate(&self, scope: &Scope) -> Result<Option<TaskPosition>>
pub fn validate(&self, scope: &Scope) -> Result<Option<TaskPosition>>
Reject invalid bounds or a cursor from another scope or filter set.
Sourcepub fn next_cursor(
&self,
scope: &Scope,
position: &TaskPosition,
) -> Result<String>
pub fn next_cursor( &self, scope: &Scope, position: &TaskPosition, ) -> Result<String>
Encode the last returned position. This token is opaque, not a snapshot.
Trait Implementations§
Source§impl Clone for TaskListQuery
impl Clone for TaskListQuery
Source§impl Debug for TaskListQuery
impl Debug for TaskListQuery
Source§impl Default for TaskListQuery
impl Default for TaskListQuery
Source§impl<'de> Deserialize<'de> for TaskListQuery
impl<'de> Deserialize<'de> for TaskListQuery
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 TaskListQuery
Source§impl PartialEq for TaskListQuery
impl PartialEq for TaskListQuery
Source§impl Serialize for TaskListQuery
impl Serialize for TaskListQuery
impl StructuralPartialEq for TaskListQuery
Auto Trait Implementations§
impl Freeze for TaskListQuery
impl RefUnwindSafe for TaskListQuery
impl Send for TaskListQuery
impl Sync for TaskListQuery
impl Unpin for TaskListQuery
impl UnsafeUnpin for TaskListQuery
impl UnwindSafe for TaskListQuery
Blanket Implementations§
impl<T> ArtifactLease for T
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