mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-30 07:33:55 +00:00
backend: Implement BasePayloadResultProvider for BasePayloadResult.
This commit is contained in:
parent
4d2f9828bb
commit
8cca9d0677
@ -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")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user