pub struct NotificationMetadata {
pub repo_key: Option<String>,
pub pr_number: Option<u64>,
pub issue_number: Option<u64>,
pub actor: Option<String>,
}Expand description
Additional metadata for notifications.
Fields§
§repo_key: Option<String>Repository key if applicable.
pr_number: Option<u64>PR number if applicable.
issue_number: Option<u64>Issue number if applicable.
actor: Option<String>Username of the actor who triggered this.
Trait Implementations§
Source§impl Clone for NotificationMetadata
impl Clone for NotificationMetadata
Source§fn clone(&self) -> NotificationMetadata
fn clone(&self) -> NotificationMetadata
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 NotificationMetadata
impl Debug for NotificationMetadata
Source§impl Default for NotificationMetadata
impl Default for NotificationMetadata
Source§fn default() -> NotificationMetadata
fn default() -> NotificationMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationMetadata
impl<'de> Deserialize<'de> for NotificationMetadata
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
Auto Trait Implementations§
impl Freeze for NotificationMetadata
impl RefUnwindSafe for NotificationMetadata
impl Send for NotificationMetadata
impl Sync for NotificationMetadata
impl Unpin for NotificationMetadata
impl UnwindSafe for NotificationMetadata
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