pub struct Notification {
pub id: String,
pub priority: NotificationPriority,
pub require_ack: bool,
pub title: String,
pub body: String,
pub issued_at: DateTime<Utc>,
pub issued_by: Option<String>,
pub acked_at: Option<DateTime<Utc>>,
}Expand description
Notification body — used both for NotificationsListResult
entries and the NotificationNewParams push.
Fields§
§id: StringStable id minted by the backend (UUID v7). Identifies the notification for ack / history lookups.
priority: NotificationPriority§require_ack: boolWhether the user must explicitly click “確認” to dismiss. Non-acked notifications stay pinned on the Client App’s notification panel until clicked; acked ones drop into history.
title: String§body: String§issued_at: DateTime<Utc>When the notification was created (backend wall clock).
issued_by: Option<String>Optional human-readable label of who created the
notification (e.g. "infra-team" in SPEC §2.12.8). Surfaced
in the Client App for context.
acked_at: Option<DateTime<Utc>>acked_at from this user’s perspective. Populated by
notifications.list for already-acked entries; never set on
notifications.new pushes (a fresh push by definition
hasn’t been acked yet).
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Notification
impl JsonSchema for Notification
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more