From 8cca9d067723930047927decfb7141271c4e386c Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Thu, 2 Nov 2023 13:56:43 +0000 Subject: [PATCH] backend: Implement BasePayloadResultProvider for BasePayloadResult. --- backend/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/lib.rs b/backend/src/lib.rs index 7c68d961..660e0bcc 100644 --- a/backend/src/lib.rs +++ b/backend/src/lib.rs @@ -584,6 +584,12 @@ pub struct BasePayloadResult { pub result: ResultPayload, } +impl BasePayloadResultProvider for BasePayloadResult { + fn base_payload(&self) -> &BasePayloadResult { + self + } +} + #[derive(Serialize, Deserialize, Default, Debug, PartialEq, Eq, Clone)] pub struct ResultPayload { #[serde(rename = "ResultCode")]