backend: Implement BasePayloadResultProvider for BasePayloadResult.

This commit is contained in:
Orne Brocaar 2023-11-02 13:56:43 +00:00
parent 4d2f9828bb
commit 8cca9d0677

View File

@ -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")]