sift-query-core 0.1.0

Backend-independent query model and strict parameter parser for SiftQuery
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Signed cursor framing and supported key representations.
use crate::ParamError;
mod codec;
mod value;
pub use codec::CursorCodec;
pub use value::{Cursor, CursorValue, IntoCursorValue};

fn invalid_cursor(reason: &str) -> ParamError {
    ParamError::InvalidValue {
        field: "cursor".to_owned(),
        reason: reason.to_owned(),
    }
}