pub struct NotificationDetail {
pub notification: Notification,
pub acks: Vec<NotificationAckEntry>,
pub audience: Vec<AudiencePc>,
}Expand description
Response of GET /api/notifications/{id} — one sent notification’s
full content (so the SPA can show “what was sent”, including the
body the history table truncates away) paired with its
per-recipient confirmation list. Powers the deep-linkable
/notifications/{id} detail page, which an operator opens in a new
tab from the history list (Ctrl/⌘ click), mirroring the Activity →
result-detail deep link.
acks is the same set ack_status returns; bundling it here saves
the detail page a second round-trip.
audience is the per-PC confirmation roster (④): the set of PCs the
notification was addressed to, each flagged confirmed/pending, so an
operator can see who hasn’t acknowledged — not just who has. Empty
when the audience couldn’t be reconstructed (e.g. the fan-out subjects
aged out of the stream).
Fields§
§notification: Notification§acks: Vec<NotificationAckEntry>§audience: Vec<AudiencePc>Trait Implementations§
Source§impl Clone for NotificationDetail
impl Clone for NotificationDetail
Source§fn clone(&self) -> NotificationDetail
fn clone(&self) -> NotificationDetail
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 NotificationDetail
impl Debug for NotificationDetail
Source§impl<'de> Deserialize<'de> for NotificationDetail
impl<'de> Deserialize<'de> for NotificationDetail
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 NotificationDetail
impl JsonSchema for NotificationDetail
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