#[non_exhaustive]pub struct GetResponse<T> {
pub account_id: Id,
pub state: State,
pub list: Vec<T>,
pub not_found: Vec<Id>,
pub extra: Map<String, Value>,
}Expand description
RFC 8620 §5.1 — Foo/get response shape.
T is the type of object being fetched (e.g. Mailbox, CalendarEvent).
state is the opaque state token the server returns alongside the result;
it advances every time any object of the requested type changes in the
account. not_found lists ids the client requested that the server could
not find — null is treated as an empty list per RFC 8620 §5.1.
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.
state: StateOpaque state token for this object type at the time of the response.
list: Vec<T>The fetched objects, one per id that was found.
not_found: Vec<Id>Ids that were requested but not found (RFC 8620 §5.1 notFound: Id[]). A peer that sends null or omits it decodes as empty.
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).