pub struct IssuesEvent {
pub action: IssueAction,
pub issue: Issue,
pub changes: Option<IssueChanges>,
pub label: Option<Label>,
pub assignee: Option<User>,
pub repository: Repository,
pub sender: User,
pub installation: Option<InstallationId>,
}
Fields§
§action: IssueAction
The action that was performed.
issue: Issue
The issue itself.
changes: Option<IssueChanges>
Changes to the issues (if the action is Edited
).
label: Option<Label>
The label that was added or removed (if the action is Labeled
or
Unlabeled
).
assignee: Option<User>
The optional user who was assigned or unassigned from the issue (if the
action is Assigned
or Unassigned
).
repository: Repository
The repository associated with this event.
sender: User
The user who triggered the event.
installation: Option<InstallationId>
The App installation ID. This is only present for GitHub App events.
Trait Implementations§
Source§impl AppEvent for IssuesEvent
impl AppEvent for IssuesEvent
Source§fn installation(&self) -> Option<u64>
fn installation(&self) -> Option<u64>
Returns the installation ID for the event.
Source§impl Clone for IssuesEvent
impl Clone for IssuesEvent
Source§fn clone(&self) -> IssuesEvent
fn clone(&self) -> IssuesEvent
Returns a copy 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 IssuesEvent
impl Debug for IssuesEvent
Source§impl<'de> Deserialize<'de> for IssuesEvent
impl<'de> Deserialize<'de> for IssuesEvent
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 From<IssuesEvent> for Event
impl From<IssuesEvent> for Event
Source§fn from(original: IssuesEvent) -> Event
fn from(original: IssuesEvent) -> Event
Converts to this type from the input type.
Source§impl Hash for IssuesEvent
impl Hash for IssuesEvent
Source§impl Ord for IssuesEvent
impl Ord for IssuesEvent
Source§fn cmp(&self, other: &IssuesEvent) -> Ordering
fn cmp(&self, other: &IssuesEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IssuesEvent
impl PartialEq for IssuesEvent
Source§impl PartialOrd for IssuesEvent
impl PartialOrd for IssuesEvent
impl Eq for IssuesEvent
impl StructuralPartialEq for IssuesEvent
Auto Trait Implementations§
impl Freeze for IssuesEvent
impl RefUnwindSafe for IssuesEvent
impl Send for IssuesEvent
impl Sync for IssuesEvent
impl Unpin for IssuesEvent
impl UnwindSafe for IssuesEvent
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