pub struct NotificationUnacked {
pub notification_id: String,
pub pc_id: String,
pub user_sid: String,
pub unacked_at: DateTime<Utc>,
pub account: Option<String>,
}Expand description
Body of the
events.notifications.unacked.{pc_id}.{user_sid}.{notif_id} event the
agent publishes when a user retracts a confirmation. Mirror of
NotificationAcked; the projector reads these body fields (not the
subject) and, in the same stream-ordered consumer, appends a
kind = 'unacked' row to notification_ack_events and stamps
notification_acks.unacked_at so the SPA roster flips the recipient
from confirmed back to “未確認” while the audit log keeps the original
ack.
Fields§
§notification_id: String§pc_id: String§user_sid: String§unacked_at: DateTime<Utc>§account: Option<String>The retracting user’s login name — same provenance and fallback
semantics as NotificationAcked::account. Carried for audit
symmetry (the projector’s DELETE/UPDATE keys on the SID, not the
account).
Trait Implementations§
Source§impl Clone for NotificationUnacked
impl Clone for NotificationUnacked
Source§fn clone(&self) -> NotificationUnacked
fn clone(&self) -> NotificationUnacked
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationUnacked
impl Debug for NotificationUnacked
Source§impl<'de> Deserialize<'de> for NotificationUnacked
impl<'de> Deserialize<'de> for NotificationUnacked
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for NotificationUnacked
impl JsonSchema for NotificationUnacked
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for NotificationUnacked
impl RefUnwindSafe for NotificationUnacked
impl Send for NotificationUnacked
impl Sync for NotificationUnacked
impl Unpin for NotificationUnacked
impl UnsafeUnpin for NotificationUnacked
impl UnwindSafe for NotificationUnacked
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more