pub(super) enum RequestScope {
Search {
text: Option<String>,
filters: Vec<Filter>,
limit: usize,
},
Enumerate {
limit: usize,
},
}Expand description
Request fields that must stay fixed while following a continuation. Only serialized keys are compared; decoding numeric operands can round floats.
Variants§
Search
Search predicates and page size, excluding the changing cursor.
Enumerate
Inventory traversal has no search predicates.
Implementations§
Source§impl RequestScope
impl RequestScope
Sourcepub(super) fn search(query: &SearchQuery) -> Self
pub(super) fn search(query: &SearchQuery) -> Self
Capture the search identity independently of its current page position.
Sourcepub(super) fn unwrap_cursor(
&self,
store: &StoreId,
cursor: Option<&str>,
) -> Result<Option<String>>
pub(super) fn unwrap_cursor( &self, store: &StoreId, cursor: Option<&str>, ) -> Result<Option<String>>
Return the native position after checking the store and serialized request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestScope
impl RefUnwindSafe for RequestScope
impl Send for RequestScope
impl Sync for RequestScope
impl Unpin for RequestScope
impl UnsafeUnpin for RequestScope
impl UnwindSafe for RequestScope
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