pub fn resolve_creation_ref(
raw: &str,
created_ids: &BTreeMap<Id, Id>,
) -> Option<Id>Expand description
Resolve an Id-typed value that may be a creation-id reference (RFC 8620 §5.3).
A value starting with # names a record created earlier in the same
request; it resolves to that record’s server-assigned id from
created_ids (pass crate::CallContext::created_ids). Any other
value is a literal id and is returned as is. None means a #
reference with no matching creation; the caller rejects the
create/update, typically with an invalidProperties SetError naming
the property.
References to creates in the same /set call are not in
created_ids yet; the handler orders and resolves those itself
(RFC 8620 §5.3).