#[non_exhaustive]pub struct CopyResponse<T> {
pub from_account_id: Id,
pub account_id: Id,
pub old_state: Option<State>,
pub new_state: State,
pub created: BTreeMap<String, T>,
pub not_created: BTreeMap<String, SetError>,
pub extra: Map<String, Value>,
}Expand description
RFC 8620 §5.4 — Foo/copy response shape.
Unlike SetResponse it carries fromAccountId and has no updated
/ destroyed maps. When onSuccessDestroyOriginal is set the server
sends a separate implicit Foo/set response with the same call id; that
one is a SetResponse.
The result maps and lists are plain collections, not Options: RFC 8620
defines each as “null if none”, so an empty collection means none. A
null or absent field decodes as empty and an empty one encodes as
null.
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.from_account_id: IdThe account the records were copied from.
account_id: IdThe account the records were copied to.
old_state: Option<State>State of the destination account before the copy, or None when
the server does not know it.
new_state: StateState of the destination account after the copy.
created: BTreeMap<String, T>Successfully copied objects, keyed by caller-supplied creation id.
not_created: BTreeMap<String, SetError>Failed copies, keyed by caller-supplied creation id.
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).