From c7ed21d595245392705d51ded34ee533271e729d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 1 Apr 2026 20:41:03 -0400 Subject: [PATCH] cleanup --- .../src/notification/notification_details.rs | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/crates/lib/pager/src/notification/notification_details.rs b/crates/lib/pager/src/notification/notification_details.rs index 8e9dc9713b..873f2a4c11 100644 --- a/crates/lib/pager/src/notification/notification_details.rs +++ b/crates/lib/pager/src/notification/notification_details.rs @@ -8,50 +8,46 @@ use crate::notification::notification_urgency::NotificationUrgency; #[derive(Debug)] pub struct NotificationDetails { /// Title or summary of the alert. - pub title: String, + pub(crate) title: String, /// Full details for the alert. - pub description: Option, + pub(crate) description: Option, /// Urgency level for the notification. - pub urgency: Option, + pub(crate) urgency: Option, /// When the event occurred. - pub event_time: DateTime, + pub(crate) event_time: DateTime, /// The error that triggered this notification, if any. - pub maybe_error: Option>, + pub(crate) maybe_error: Option>, /// Whether this notification originated from an error. - pub is_from_error: bool, + pub(crate) is_from_error: bool, /// HTTP method associated with the event, if any. - pub http_method: Option, + pub(crate) http_method: Option, /// HTTP endpoint path associated with the event, if any. - pub http_path: Option, + pub(crate) http_path: Option, /// HTTP status code associated with the event, if any. - pub http_status_code: Option, + pub(crate) http_status_code: Option, /// User token associated with the event, if any. - pub user_token: Option, + pub(crate) user_token: Option, /// Media file token associated with the event, if any. - pub media_file_token: Option, + pub(crate) media_file_token: Option, /// Inference job token associated with the event, if any. - pub inference_job_token: Option, + pub(crate) inference_job_token: Option, /// Third-party identifier associated with the event, if any. - pub third_party_id: Option, + pub(crate) third_party_id: Option, } impl NotificationDetails { - pub fn from_title(title: String) -> NotificationDetailsBuilder { - NotificationDetailsBuilder::from_title(title) - } - pub fn to_deduplication_key(&self) -> String { generate_deduplication_key(self) }