fn extract_cursor(result_info: Option<JsonValue>) -> Option<String> {
    let result_info = result_info.unwrap();
    let returned_cursor_value = &result_info["cursor"];
    let returned_cursor = returned_cursor_value.as_str().unwrap().to_string();
    if returned_cursor.is_empty() {
        None
    } else {
        Some(returned_cursor)
    }
}
// Returns Some(cursor) if cursor is non-empty, otherwise returns None.
Returns Some(cursor) if cursor is non-empty, otherwise returns None.
Returns Some ( cursor ) if cursor is non - empty otherwise returns None .
fn extract_cursor(result_info: Option<JsonValue>) -> Option<String> {
    let result_info = result_info.unwrap();
    let returned_cursor_value = &result_info["cursor"];
    let returned_cursor = returned_cursor_value.as_str().unwrap().to_string();
    if returned_cursor.is_empty() {
        None
    } else {
        Some(returned_cursor)
    }
}
fn extract_cursor ( result_info : Option < JsonValue > ) -> Option < String > { let result_info = result_info . unwrap ( ) ; let returned_cursor_value = & result_info [ " " ] ; let returned_cursor = returned_cursor_value . as_str ( ) . unwrap ( ) . to_string ( ) ; if returned_cursor . is_empty ( ) { None } else { Some ( returned_cursor ) } }
Returns Some(cursor) if cursor is non-empty, otherwise returns None.
Returns Some ( cursor ) if cursor is non - empty otherwise returns None .
result_info
Option<JsonValue>
result_info
Option<JsonValue>