parse_string_id_cursor

Function parse_string_id_cursor 

Source
pub fn parse_string_id_cursor(
    value: Option<String>,
    id: Option<i64>,
    value_name: &str,
) -> Result<Option<(String, i64)>>
Expand description

Validates a string value plus numeric id cursor pair.

ยงErrors

Returns an error when the tuple is incomplete, the string value is blank, or the id is not positive.