pub struct Notice {
pub kind: NotificationKind,
pub title: String,
pub body: String,
pub link: String,
pub subject_type: &'static str,
pub subject_ref: String,
pub subject: Subject,
pub redacted: Option<(Mentions, String, String)>,
}Expand description
The content of a notification.
Fields§
§kind: NotificationKind§title: String§body: String§link: StringPath in the web UI.
subject_type: &'static strchange, change_request or revision (for the desktop app), or empty.
subject_ref: StringChange or request number, or <item number>/<revision code>.
subject: SubjectWhat it is about – decides who may receive it.
redacted: Option<(Mentions, String, String)>Other items and change orders the text names (the source of an impact, the revisions of a change, the change that released an item) and the text for recipients who may not see all of them.
Implementations§
Source§impl Notice
impl Notice
pub fn change( kind: NotificationKind, change_id: Uuid, number: &str, title: String, body: String, ) -> Notice
pub fn request( kind: NotificationKind, request_id: Uuid, number: &str, title: String, body: String, ) -> Notice
pub fn revision( kind: NotificationKind, rev: &Revision, title: String, body: String, ) -> Notice
pub fn revision_ref( kind: NotificationKind, revision_id: Uuid, item_id: Uuid, item_number: &str, code: &str, title: String, body: String, ) -> Notice
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.