Skip to main content

ProjectNotification

Struct ProjectNotification 

Source
pub struct ProjectNotification {
Show 38 fields pub comment_id: Option<String>, pub parent_comment_id: Option<String>, pub reaction_emoji: Option<String>, pub id: Option<String>, pub created_at: Option<DateTime<Utc>>, pub updated_at: Option<DateTime<Utc>>, pub archived_at: Option<DateTime<Utc>>, pub type: Option<String>, pub actor: Option<Box<User>>, pub external_user_actor: Option<Box<ExternalUser>>, pub user: Option<Box<User>>, pub read_at: Option<DateTime<Utc>>, pub emailed_at: Option<DateTime<Utc>>, pub snoozed_until_at: Option<DateTime<Utc>>, pub unsnoozed_at: Option<DateTime<Utc>>, pub category: Option<NotificationCategory>, pub url: Option<String>, pub inbox_url: Option<String>, pub title: Option<String>, pub subtitle: Option<String>, pub is_linear_actor: Option<bool>, pub actor_avatar_url: Option<String>, pub actor_initials: Option<String>, pub actor_avatar_color: Option<String>, pub issue_status_type: Option<String>, pub project_update_health: Option<String>, pub initiative_update_health: Option<String>, pub grouping_key: Option<String>, pub grouping_priority: Option<f64>, pub bot_actor: Option<Box<ActorBot>>, pub project_id: Option<String>, pub project_milestone_id: Option<String>, pub project_update_id: Option<String>, pub project: Option<Box<Project>>, pub document: Option<Box<Document>>, pub project_update: Option<Box<ProjectUpdate>>, pub comment: Option<Box<Comment>>, pub parent_comment: Option<Box<Comment>>,
}
Expand description

A project related notification.

Fields§

§comment_id: Option<String>

Related comment ID. Null if the notification is not related to a comment.

§parent_comment_id: Option<String>

Related parent comment ID. Null if the notification is not related to a comment.

§reaction_emoji: Option<String>

Name of the reaction emoji related to the notification.

§id: Option<String>

The unique identifier of the entity.

§created_at: Option<DateTime<Utc>>

The time at which the entity was created.

§updated_at: Option<DateTime<Utc>>

The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.

§archived_at: Option<DateTime<Utc>>

The time at which the entity was archived. Null if the entity has not been archived.

§type: Option<String>

Notification type.

§actor: Option<Box<User>>

The user that caused the notification.

§external_user_actor: Option<Box<ExternalUser>>

The external user that caused the notification.

§user: Option<Box<User>>

The user that received the notification.

§read_at: Option<DateTime<Utc>>

The time at when the user marked the notification as read. Null, if the the user hasn’t read the notification

§emailed_at: Option<DateTime<Utc>>

The time at when an email reminder for this notification was sent to the user. Null, if no email reminder has been sent.

§snoozed_until_at: Option<DateTime<Utc>>

The time until a notification will be snoozed. After that it will appear in the inbox again.

§unsnoozed_at: Option<DateTime<Utc>>

The time at which a notification was unsnoozed..

§category: Option<NotificationCategory>

The category of the notification.

§url: Option<String>

Internal URL to the target of the notification.

§inbox_url: Option<String>

Internal Inbox URL for the notification.

§title: Option<String>

Internal Notification title.

§subtitle: Option<String>

Internal Notification subtitle.

§is_linear_actor: Option<bool>

Internal If notification actor was Linear.

§actor_avatar_url: Option<String>

Internal Notification avatar URL.

§actor_initials: Option<String>

Internal Notification actor initials if avatar is not available.

§actor_avatar_color: Option<String>

Internal Notification actor initials if avatar is not available.

§issue_status_type: Option<String>

Internal Issue’s status type for issue notifications.

§project_update_health: Option<String>

Internal Project update health for new updates.

§initiative_update_health: Option<String>

Internal Initiative update health for new updates.

§grouping_key: Option<String>

Internal Notifications with the same grouping key will be grouped together in the UI.

§grouping_priority: Option<f64>

Internal Priority of the notification with the same grouping key. Higher number means higher priority. If priority is the same, notifications should be sorted by createdAt.

§bot_actor: Option<Box<ActorBot>>

The bot that caused the notification.

§project_id: Option<String>

Related project ID.

§project_milestone_id: Option<String>

Related project milestone ID.

§project_update_id: Option<String>

Related project update ID.

§project: Option<Box<Project>>

The project related to the notification.

§document: Option<Box<Document>>

The document related to the notification.

§project_update: Option<Box<ProjectUpdate>>

The project update related to the notification.

§comment: Option<Box<Comment>>

The comment related to the notification.

§parent_comment: Option<Box<Comment>>

The parent comment related to the notification, if a notification is a reply comment notification.

Trait Implementations§

Source§

impl Clone for ProjectNotification

Source§

fn clone(&self) -> ProjectNotification

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProjectNotification

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ProjectNotification

Source§

fn default() -> ProjectNotification

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ProjectNotification

Source§

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 GraphQLFields for ProjectNotification

Source§

type FullType = ProjectNotification

The full generated type this implementation validates against.
Source§

fn selection() -> String

Return the GraphQL field selection string for this type. Read more
Source§

impl Serialize for ProjectNotification

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> FieldCompatible<T> for T