pub struct Notification {Show 13 fields
pub notification_id: String,
pub kind: i32,
pub feed_item_id: String,
pub repo_path: Option<RepositoryRef>,
pub resource_id: String,
pub headline: String,
pub detail: String,
pub actor_subject: String,
pub actor_agent_id: String,
pub created_at: Option<Timestamp>,
pub read_at: Option<Timestamp>,
pub deliveries: Vec<NotificationDelivery>,
pub dedup_key: String,
}Fields§
§notification_id: String§kind: i32§feed_item_id: StringReferences attention.proto FeedItem.item_id this notification was raised from. Empty for notification-only kinds (MENTION, DISCUSSION_REPLY, ACCOUNT_SECURITY, STEER_HELD) that have no feed item.
repo_path: Option<RepositoryRef>§resource_id: Stringstate_id, session_id, discussion_id, etc.
headline: String§detail: String§actor_subject: Stringwho/what caused this notification
actor_agent_id: StringDeepest delegation label recorded by an agent attenuation block. Empty for an undelegated root credential; actor_subject remains the root subject. Empty/non-empty is the ActorOrigin HUMAN/AGENT split.
created_at: Option<Timestamp>§read_at: Option<Timestamp>Absent until the recipient marks the notification read.
deliveries: Vec<NotificationDelivery>§dedup_key: StringStable idempotency key the producer computes to coalesce duplicate notifications for the same underlying event.
Implementations§
Source§impl Notification
impl Notification
Sourcepub fn kind(&self) -> NotificationKind
pub fn kind(&self) -> NotificationKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: NotificationKind)
pub fn set_kind(&mut self, value: NotificationKind)
Sets kind to the provided enum value.
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 Default for Notification
impl Default for Notification
Source§impl Message for Notification
impl Message for Notification
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.