pub struct CreateEvent {
pub description: Option<String>,
pub installation: Option<InstallationLite>,
pub master_branch: String,
pub organization: Option<Organization>,
pub pusher_type: String,
pub ref_: String,
pub ref_type: CreateEventRefType,
pub repository: Repository,
pub sender: User,
}
Expand description
A Git branch or tag is created.
JSON schema
{
"title": "create event",
"description": "A Git branch or tag is created.",
"type": "object",
"required": [
"description",
"master_branch",
"pusher_type",
"ref",
"ref_type",
"repository",
"sender"
],
"properties": {
"description": {
"description": "The repository's current description.",
"type": [
"string",
"null"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"master_branch": {
"description": "The name of the repository's default branch (usually `main`).",
"type": "string"
},
"organization": {
"$ref": "#/definitions/organization"
},
"pusher_type": {
"description": "The pusher type for the event. Can be either `user` or a deploy key.",
"type": "string"
},
"ref": {
"description": "The [`git ref`](https://docs.github.com/en/rest/reference/git#get-a-reference) resource.",
"type": "string"
},
"ref_type": {
"description": "The type of Git ref object created in the repository. Can be either `branch` or `tag`.",
"type": "string",
"enum": [
"tag",
"branch"
]
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§description: Option<String>
The repository’s current description.
installation: Option<InstallationLite>
§master_branch: String
The name of the repository’s default branch (usually main
).
organization: Option<Organization>
§pusher_type: String
The pusher type for the event. Can be either user
or a deploy key.
ref_: String
The git ref
resource.
ref_type: CreateEventRefType
The type of Git ref object created in the repository. Can be either branch
or tag
.
repository: Repository
§sender: User
Implementations§
Source§impl CreateEvent
impl CreateEvent
pub fn builder() -> CreateEvent
Trait Implementations§
Source§impl Clone for CreateEvent
impl Clone for CreateEvent
Source§fn clone(&self) -> CreateEvent
fn clone(&self) -> CreateEvent
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 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 CreateEvent
impl From<&CreateEvent> for CreateEvent
Source§fn from(value: &CreateEvent) -> Self
fn from(value: &CreateEvent) -> Self
Converts to this type from the input type.
Source§impl From<CreateEvent> for CreateEvent
impl From<CreateEvent> for CreateEvent
Source§fn from(value: CreateEvent) -> Self
fn from(value: CreateEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateEvent
impl Serialize for CreateEvent
Source§impl TryFrom<CreateEvent> for CreateEvent
impl TryFrom<CreateEvent> 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