Expand description
Decoded app invocation results and the canonical invoke error.
Structs§
- Invoke
Result Error - Decoded app invocation payload failure: an HTTP-error status, an error envelope, or an undecodable result body.
Enums§
- Invoke
Error - Failure of a
json_resultmethod: the transport failed, or the decoded result carried a payload failure.
Functions§
- decode_
app_ result - Decodes one app operation result with the standard JSON envelope
semantics: success envelopes return their data, error envelopes and
HTTP-error statuses return
InvokeResultError, and any other JSON body passes through unchanged. - decode_
graphql_ result - Decodes one GraphQL invocation result like
decode_app_resultand additionally fails when the response carries a non-empty GraphQLerrorsarray. - error_
for_ status - Returns the payload failure an HTTP-error status (>= 400) decodes to,
mirroring reqwest’s
Response::error_for_status; any other status returns Ok. The error carries exactly whatdecode_app_resultwould attach for the same status and body. - is_
success - Reports whether an HTTP status code is a success (200-299), mirroring
reqwest’s
StatusCode::is_success.