pub struct IntegrationCursorPaginationConfig {Show 17 fields
pub cursor_path: String,
pub prev_cursor_path: Option<String>,
pub cursor_key: Option<String>,
pub has_next_path: Option<String>,
pub limit_key: Option<String>,
pub max_limit: Option<i64>,
pub is_link: Option<bool>,
pub include_path: Option<bool>,
pub headers: Option<BTreeMap<String, String>>,
pub add_to_body: Option<bool>,
pub limit_data_type: Option<IntegrationCursorPaginationConfigLimitDataType>,
pub ignore_limit_in_pagination: Option<bool>,
pub cursor_path_object: Option<IntegrationCursorPaginationConfigCursorPathObject>,
pub use_content_hash: Option<bool>,
pub add_to_query: Option<bool>,
pub is_cursor_url_encoded: Option<bool>,
pub allow_empty_page_cursor: Option<bool>,
}Expand description
Cursor pagination options.
Fields§
§cursor_path: StringDotted-path accessor into the response body (or headers, when cursor_path_object: header) that yields the next cursor.
prev_cursor_path: Option<String>Optional accessor that yields the previous-page cursor.
cursor_key: Option<String>Query/body key Truto uses to send the cursor on the next request.
has_next_path: Option<String>Optional accessor that returns a truthy/"true"/"false" value indicating whether more pages exist.
limit_key: Option<String>Query/body key that holds the page size.
max_limit: Option<i64>Maximum page size Truto will request.
is_link: Option<bool>Treat the value at cursor_path as a fully-qualified URL (or path) rather than an opaque token.
include_path: Option<bool>When is_link is true, also overwrite the request path with the link’s path (not just the query string).
headers: Option<BTreeMap<String, String>>Static or templated headers added to every paginated request. Templated against the request query plus a synthetic limit.
add_to_body: Option<bool>Send the cursor in the request body instead of the URL.
limit_data_type: Option<IntegrationCursorPaginationConfigLimitDataType>Cast the limit value when sending it in the body.
ignore_limit_in_pagination: Option<bool>Don’t re-send limit_key after the first page (for APIs that reject it on subsequent calls).
cursor_path_object: Option<IntegrationCursorPaginationConfigCursorPathObject>Where to read cursor_path from.
use_content_hash: Option<bool>Detect loops by hashing each page’s results. Only effective when cursor_path_object is body.
add_to_query: Option<bool>Add the cursor to the query string.
is_cursor_url_encoded: Option<bool>URL-decode the cursor before sending (some upstreams double-encode).
allow_empty_page_cursor: Option<bool>Don’t treat an empty cursor as the end of pagination.