pub struct LabelEvent {
pub action: LabelAction,
pub label: Label,
pub changes: Option<LabelChanges>,
pub repository: Repository,
pub sender: User,
pub installation: Option<InstallationId>,
}
Fields§
§action: LabelAction
The action that was performed.
label: Label
The label itself.
changes: Option<LabelChanges>
Changes to the issues (if the action is Edited
).
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 LabelEvent
impl AppEvent for LabelEvent
Source§fn installation(&self) -> Option<u64>
fn installation(&self) -> Option<u64>
Returns the installation ID for the event.
Source§impl Clone for LabelEvent
impl Clone for LabelEvent
Source§fn clone(&self) -> LabelEvent
fn clone(&self) -> LabelEvent
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 LabelEvent
impl Debug for LabelEvent
Source§impl<'de> Deserialize<'de> for LabelEvent
impl<'de> Deserialize<'de> for LabelEvent
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<LabelEvent> for Event
impl From<LabelEvent> for Event
Source§fn from(original: LabelEvent) -> Event
fn from(original: LabelEvent) -> Event
Converts to this type from the input type.
Source§impl Hash for LabelEvent
impl Hash for LabelEvent
Source§impl Ord for LabelEvent
impl Ord for LabelEvent
Source§fn cmp(&self, other: &LabelEvent) -> Ordering
fn cmp(&self, other: &LabelEvent) -> 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 LabelEvent
impl PartialEq for LabelEvent
Source§impl PartialOrd for LabelEvent
impl PartialOrd for LabelEvent
impl Eq for LabelEvent
impl StructuralPartialEq for LabelEvent
Auto Trait Implementations§
impl Freeze for LabelEvent
impl RefUnwindSafe for LabelEvent
impl Send for LabelEvent
impl Sync for LabelEvent
impl Unpin for LabelEvent
impl UnwindSafe for LabelEvent
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