#[non_exhaustive]pub struct GetResponse<T> {
pub account_id: Id,
pub state: State,
pub list: Vec<T>,
pub not_found: Option<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: Option<Vec<Id>>Ids that were requested but not found. null on the wire is treated
as an empty list per RFC 8620 §5.1.
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<T> Clone for GetResponse<T>where
T: Clone,
impl<T> Clone for GetResponse<T>where
T: Clone,
Source§fn clone(&self) -> GetResponse<T>
fn clone(&self) -> GetResponse<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more