From b98e14e8fb23918593c388457fd0c4149716d87f Mon Sep 17 00:00:00 2001 From: Sorunome Date: Mon, 1 Nov 2021 10:11:58 +0100 Subject: [PATCH] feat: Add encrypted push fields --- src/models.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/models.rs b/src/models.rs index 366adfb..b028427 100644 --- a/src/models.rs +++ b/src/models.rs @@ -81,6 +81,8 @@ pub struct PusherData { pub url: Option, /// The format to use when sending notifications to the Push Gateway. pub format: Option, + /// The algorithm used to potentially encrypt the push payload. + pub algorithm: Option, } /// A dictionary of customisations made to the way this notification is to be @@ -119,6 +121,12 @@ pub struct Notification { pub content: Option, /// This is an array of devices that the notification should be sent to. pub devices: Vec, + /// The ciphertext of an encrypted push payload + pub ciphertext: Option, + /// The ephemeral key of an encrypted push payload + pub ephemeral: Option, + /// The mac of an encrypted push payload + pub mac: Option, } /// Response from the push gateway -- GitLab