pub enum MergePolicy {
ConcatArray,
ConcatField(String),
FirstPageOnly,
}Expand description
SP-pagination-v1 §4.8 — strategy for merging pages.
Different paginating tools return different shapes:
healthkit:query_observationsreturns[Observation, ...]per page →ConcatArraycelia:list_observationsreturns{patient: "x", observations: [...], total: N}per page →ConcatField("observations")- A summary tool that only honors the first page →
FirstPageOnly
Variants§
ConcatArray
Each page is a JSON array; concat across pages.
ConcatField(String)
Each page is a JSON object; concat the named array field across pages and keep the last page’s other fields (e.g., metadata totals that don’t change across pages).
FirstPageOnly
First page wins; subsequent pages are dropped silently.
Trait Implementations§
Source§impl Clone for MergePolicy
impl Clone for MergePolicy
Source§fn clone(&self) -> MergePolicy
fn clone(&self) -> MergePolicy
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 moreAuto Trait Implementations§
impl Freeze for MergePolicy
impl RefUnwindSafe for MergePolicy
impl Send for MergePolicy
impl Sync for MergePolicy
impl Unpin for MergePolicy
impl UnsafeUnpin for MergePolicy
impl UnwindSafe for MergePolicy
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