pub enum XmlPagination {
PageNumber {
param_name: String,
start_page: usize,
page_size: Option<usize>,
page_size_param: Option<String>,
},
Offset {
offset_param: String,
limit_param: String,
limit: usize,
},
BodyCursor {
next_token_path: String,
next_body: String,
},
}Expand description
Pagination configuration for XML APIs.
Variants§
PageNumber
Page-number pagination with a query parameter.
Fields
Offset
Offset/limit pagination.
BodyCursor
Body-cursor pagination (#544): read a continuation token from the
response via a dot-path (namespace-insensitive, trailing-match), and on
each subsequent request replace the request body with next_body (with
${next_token} substituted). Stops when the token is absent/empty or
repeats (loop guard), honouring max_pages. For stateful XML/SOAP APIs
that page with a readMore/resultId handle (e.g. Sage Intacct).
Trait Implementations§
Source§impl Clone for XmlPagination
impl Clone for XmlPagination
Source§fn clone(&self) -> XmlPagination
fn clone(&self) -> XmlPagination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XmlPagination
impl Debug for XmlPagination
Source§impl<'de> Deserialize<'de> for XmlPagination
impl<'de> Deserialize<'de> for XmlPagination
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for XmlPagination
impl JsonSchema for XmlPagination
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for XmlPagination
impl RefUnwindSafe for XmlPagination
impl Send for XmlPagination
impl Sync for XmlPagination
impl Unpin for XmlPagination
impl UnsafeUnpin for XmlPagination
impl UnwindSafe for XmlPagination
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more