pub struct PagedQueryParams {
pub namespace: String,
pub table: String,
pub sort_order: SortOrder,
pub columns: Vec<String>,
pub filter: Option<Vec<Filter>>,
pub cursor_columns: Option<Vec<CursorColumn>>,
pub order_columns: Option<Vec<OrderBy>>,
pub limit: u32,
}Expand description
Parameters for a paginated query
Fields§
§namespace: StringThe namespace of the table to query
table: StringThe name of the table to query
sort_order: SortOrderThe order to sort the results
columns: Vec<String>The columns to return in the results
filter: Option<Vec<Filter>>The filters to apply to the query
cursor_columns: Option<Vec<CursorColumn>>Custom cursor columns for non-event tables.
order_columns: Option<Vec<OrderBy>>Explicit order columns when they differ from the cursor columns.
limit: u32The number of results to return per page
Implementations§
Source§impl PagedQueryParams
impl PagedQueryParams
pub fn new( namespace: String, table: String, sort_order: SortOrder, columns: Vec<String>, limit: u32, ) -> Self
pub fn with_filter(self, filter: Vec<Filter>) -> Self
pub fn with_cursor_columns(self, cursor_columns: Vec<CursorColumn>) -> Self
pub fn with_order_columns(self, order_columns: Vec<OrderBy>) -> Self
pub fn resolved_cursor_columns(&self) -> Vec<CursorColumn>
pub fn resolved_order_columns(&self) -> Vec<OrderBy>
Trait Implementations§
Source§impl Clone for PagedQueryParams
impl Clone for PagedQueryParams
Source§fn clone(&self) -> PagedQueryParams
fn clone(&self) -> PagedQueryParams
Returns a duplicate of the value. Read more
1.0.0 · 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 PagedQueryParams
impl Debug for PagedQueryParams
Source§impl<'de> Deserialize<'de> for PagedQueryParams
impl<'de> Deserialize<'de> for PagedQueryParams
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
Auto Trait Implementations§
impl Freeze for PagedQueryParams
impl RefUnwindSafe for PagedQueryParams
impl Send for PagedQueryParams
impl Sync for PagedQueryParams
impl Unpin for PagedQueryParams
impl UnsafeUnpin for PagedQueryParams
impl UnwindSafe for PagedQueryParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more