Skip to main content

encode_cursor

Function encode_cursor 

Source
pub fn encode_cursor(values: &[Value]) -> Result<String>
Expand description

Encode ordering values into a URL-safe cursor string.

§Errors

Returns CoreError::InvalidCursor if any value is a non-finite float (NaN/±Inf): those are neither valid JSON nor valid ordering keys, and encoding a placeholder would silently corrupt the seek position.