Struct github_webhook::payload_types::CreateEvent
source · pub struct CreateEvent<'a> {
pub ref_: &'a str,
pub ref_type: CreateEventRefType,
pub master_branch: &'a str,
pub description: Option<&'a str>,
pub pusher_type: &'a str,
pub repository: Repository<'a>,
pub sender: User<'a>,
pub installation: Option<InstallationLite<'a>>,
pub organization: Option<Organization<'a>>,
}
Expand description
A Git branch or tag is created.
Fields§
§ref_: &'a str
The git ref
resource.
ref_type: CreateEventRefType
The type of Git ref object created in the repository. Can be either branch
or tag
.
master_branch: &'a str
The name of the repository’s default branch (usually main
).
description: Option<&'a str>
The repository’s current description.
pusher_type: &'a str
The pusher type for the event. Can be either user
or a deploy key.
repository: Repository<'a>
§sender: User<'a>
§installation: Option<InstallationLite<'a>>
§organization: Option<Organization<'a>>
Trait Implementations§
source§impl<'a> Debug for CreateEvent<'a>
impl<'a> Debug for CreateEvent<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for CreateEvent<'a>
impl<'de: 'a, 'a> Deserialize<'de> for CreateEvent<'a>
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<'a> RefUnwindSafe for CreateEvent<'a>
impl<'a> Send for CreateEvent<'a>
impl<'a> Sync for CreateEvent<'a>
impl<'a> Unpin for CreateEvent<'a>
impl<'a> UnwindSafe for CreateEvent<'a>
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