pub struct NotificationAmend {
pub id: String,
pub op: NotificationAmendOp,
}Expand description
A post-send amendment to an already-fanned-out notification, broadcast
fleet-wide on the ephemeral crate::subject::NOTIFICATIONS_AMEND_SUBJECT
channel so every connected client showing the notification can react in
real time. Carries only the notification id plus the operation — a
client applies it only if it currently holds that id (an id it never
received is a no-op), so the single broadcast needs no audience routing.
The durable half of an operation lives in the backend (recall deletes the
stream copies; a future edit re-publishes them); this is the “update the
screens that are showing it right now” half. Built to grow: today only
Recall, but op is a tagged enum so an Update/SetExpiry variant can
be added without breaking the wire format.
Fields§
§id: String§op: NotificationAmendOpTrait Implementations§
Source§impl Clone for NotificationAmend
impl Clone for NotificationAmend
Source§fn clone(&self) -> NotificationAmend
fn clone(&self) -> NotificationAmend
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 NotificationAmend
impl Debug for NotificationAmend
Source§impl<'de> Deserialize<'de> for NotificationAmend
impl<'de> Deserialize<'de> for NotificationAmend
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>,
impl Eq for NotificationAmend
Source§impl JsonSchema for NotificationAmend
impl JsonSchema for NotificationAmend
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 moreSource§impl PartialEq for NotificationAmend
impl PartialEq for NotificationAmend
Source§fn eq(&self, other: &NotificationAmend) -> bool
fn eq(&self, other: &NotificationAmend) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationAmend
impl Serialize for NotificationAmend
impl StructuralPartialEq for NotificationAmend
Auto Trait Implementations§
impl Freeze for NotificationAmend
impl RefUnwindSafe for NotificationAmend
impl Send for NotificationAmend
impl Sync for NotificationAmend
impl Unpin for NotificationAmend
impl UnsafeUnpin for NotificationAmend
impl UnwindSafe for NotificationAmend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.