#[non_exhaustive]pub struct QueryChangesResponse {
pub account_id: Id,
pub old_query_state: State,
pub new_query_state: State,
pub total: Option<u64>,
pub removed: Vec<Id>,
pub added: Vec<AddedItem>,
pub extra: Map<String, Value>,
}Expand description
RFC 8620 §5.6 — Foo/queryChanges response shape.
Reports the ids removed from and added to a query result set since
old_query_state. Combined with the previous result, the client can
reconstruct the new result without re-fetching all ids.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: IdThe account the response refers to.
old_query_state: StateThe state token the client passed in.
new_query_state: StateThe current state token.
total: Option<u64>Total number of matching objects (only when
calculateTotal: true was set in the request).
removed: Vec<Id>Ids removed from the result set since old_query_state.
added: Vec<AddedItem>Items added to the result set, with their new positions.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl Clone for QueryChangesResponse
impl Clone for QueryChangesResponse
Source§fn clone(&self) -> QueryChangesResponse
fn clone(&self) -> QueryChangesResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more