pub struct Notification {
pub id: String,
pub kind: NotificationKind,
pub item_type: NotificationItemType,
pub item_id: Option<String>,
pub repository: Option<String>,
pub title: String,
pub context: String,
pub url: Option<String>,
pub unread: bool,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
One item in the cross-provider notification inbox.
Fields§
§id: StringProvider-native notification id — used to mark it read.
kind: NotificationKind§item_type: NotificationItemType§item_id: Option<String>The underlying PR / work-item / pipeline id, for opening it in-app. None when the
notification has no resolvable item (then we fall back to the web URL).
repository: Option<String>The repository the item lives in, connection-relative — needed to address item_id
on a connection that spans several repositories. None when the provider doesn’t say.
title: StringSubject line — the PR/issue title.
context: StringWhere it lives: org/repo, or the project / team name.
url: Option<String>Web URL, for the browser fallback.
unread: bool§updated_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Notification
Source§impl PartialEq for Notification
impl PartialEq for Notification
Source§impl Serialize for Notification
impl Serialize for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnsafeUnpin for Notification
impl UnwindSafe for Notification
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