pub fn decode_projected<'de, T: Deserialize<'de>, R>(
input: &'de [u8],
encoding: Encoding,
limits: Limits,
project: impl FnOnce(Projected<'de, T>, &ReadContext<'_>) -> Result<R, Error>,
) -> Result<R, Error>Expand description
Decode the outer Serde DTO and project its envelopes under one budget.
The application owns the projection, including required-field checks and visiting the root extension block and any nested envelopes. Keep custom Serde and application work bounded independently.
ยงErrors
Returns an error from frame admission, DTO decoding, projection, or any refused operation even if the application ignores that refusal.