v0.5.3-pre.003
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: ks-store/src/contracts/pagination.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! Backend-neutral pagination and sorting contracts for repository operations.
|
||||
|
||||
@@ -26,7 +26,7 @@ pub struct PageRequest {
|
||||
pub offset: u64,
|
||||
}
|
||||
|
||||
impl PageRequest {
|
||||
impl crate::PageRequest {
|
||||
/// Builds a page request after minimal bounds validation.
|
||||
pub fn new(limit: u16, offset: u64) -> ks_core::Result<Self> {
|
||||
if limit == 0 {
|
||||
|
||||
Reference in New Issue
Block a user