Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit c59a787

Browse files
committed
feat: Add Subject and Sender to message event data
1 parent e355c11 commit c59a787

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "proton-api-rs"
33
authors = ["Leander Beernaert <lbb-dev@pm.me>"]
4-
version = "0.5.3"
4+
version = "0.6.0"
55
edition = "2021"
66
license = "AGPL-3.0-only"
77
description = "Unofficial implemention of proton REST API in rust"

src/client/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ impl Display for APIError {
5252
}
5353
}
5454

55-
#[macro_export(crate)]
5655
macro_rules! impl_error_conversion {
5756
($t:ident) => {
5857
impl From<$crate::APIError> for $t {
@@ -74,3 +73,5 @@ macro_rules! impl_error_conversion {
7473
}
7574
};
7675
}
76+
77+
pub(crate) use impl_error_conversion;

src/domain/event.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ pub struct Message {
7171
pub id: MessageId,
7272
#[serde(rename = "LabelIDs")]
7373
pub labels: Vec<LabelID>,
74+
pub subject: String,
75+
pub sender_address: String,
76+
pub sender_name: Option<String>,
7477
}

0 commit comments

Comments
 (0)