pub struct CreateEvent {
pub ref_type: CreateRefType,
pub git_ref: Option<String>,
pub master_branch: String,
pub description: Option<String>,
pub repository: Repository,
pub sender: User,
pub installation: Option<InstallationId>,
}
Fields§
§ref_type: CreateRefType
The Git ref type.
git_ref: Option<String>
The Git ref string.
None
if only a repository was created.
master_branch: String
The name of the repository’s default branch (usually master
).
description: Option<String>
The repository’s current description.
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 CreateEvent
impl AppEvent for CreateEvent
Source§fn installation(&self) -> Option<u64>
fn installation(&self) -> Option<u64>
Returns the installation ID for the event.
Source§impl Clone for CreateEvent
impl Clone for CreateEvent
Source§fn clone(&self) -> CreateEvent
fn clone(&self) -> CreateEvent
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 CreateEvent
impl Debug for CreateEvent
Source§impl<'de> Deserialize<'de> for CreateEvent
impl<'de> Deserialize<'de> for CreateEvent
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<CreateEvent> for Event
impl From<CreateEvent> for Event
Source§fn from(original: CreateEvent) -> Event
fn from(original: CreateEvent) -> Event
Converts to this type from the input type.
Source§impl Hash for CreateEvent
impl Hash for CreateEvent
Source§impl Ord for CreateEvent
impl Ord for CreateEvent
Source§fn cmp(&self, other: &CreateEvent) -> Ordering
fn cmp(&self, other: &CreateEvent) -> 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 CreateEvent
impl PartialEq for CreateEvent
Source§impl PartialOrd for CreateEvent
impl PartialOrd for CreateEvent
impl Eq for CreateEvent
impl StructuralPartialEq for CreateEvent
Auto Trait Implementations§
impl Freeze for CreateEvent
impl RefUnwindSafe for CreateEvent
impl Send for CreateEvent
impl Sync for CreateEvent
impl Unpin for CreateEvent
impl UnwindSafe for CreateEvent
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