From ebbc9af5ed83f84f50bd1c68d9ef778276895375 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 11 Apr 2026 20:03:30 -0400 Subject: [PATCH] comment --- .../src/webhook_api/payload/webhook_inner_payload.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/api_clients/fal_client/src/webhook_api/payload/webhook_inner_payload.rs b/crates/api_clients/fal_client/src/webhook_api/payload/webhook_inner_payload.rs index 5d8ef5ed3d..6cc94e5ddb 100644 --- a/crates/api_clients/fal_client/src/webhook_api/payload/webhook_inner_payload.rs +++ b/crates/api_clients/fal_client/src/webhook_api/payload/webhook_inner_payload.rs @@ -11,7 +11,10 @@ pub enum WebhookInnerPayload { /// The webhook reported an error (status=ERROR) with optional detail info. Error(ErrorData), - /// The webhook reported success but had no payload and instead had a payload_error. + /// The webhook reported as "success" but (1) had no payload and (2) had a payload_error. + /// In rare instances of an "OK" response, there may be an error on Fal's end with encoding + /// the payload. If that happens, the "payload_error" field may be set, and this enum variant + /// represents that failure case. PayloadError(PayloadErrorData), }