pub struct Notification {
pub subject: Option<String>,
pub text_body: Option<String>,
pub html_body: Option<String>,
pub to: Option<NotificationRecipients>,
pub restrict: Option<Box<NotificationRecipientsRestrictions>>,
}
Expand description
Notification : Details about a notification.
Fields§
§subject: Option<String>
The subject of the email notification for the issue. If this is not specified, then the subject is set to the issue key and summary.
text_body: Option<String>
The plain text body of the email notification for the issue.
html_body: Option<String>
The HTML body of the email notification for the issue.
to: Option<NotificationRecipients>
The recipients of the email notification for the issue.
restrict: Option<Box<NotificationRecipientsRestrictions>>
Restricts the notifications to users with the specified permissions.
Implementations§
Source§impl Notification
impl Notification
Sourcepub fn new() -> Notification
pub fn new() -> Notification
Details about a notification.
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl Default for Notification
impl Default for Notification
Source§fn default() -> Notification
fn default() -> Notification
Returns the “default value” for a type. Read more
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
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 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