pub struct DeleteEvent {
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub pusher_type: String,
pub ref_: String,
pub ref_type: DeleteEventRefType,
pub repository: Repository,
pub sender: User,
}
Expand description
A Git branch or tag is deleted.
JSON schema
{
"title": "delete event",
"description": "A Git branch or tag is deleted.",
"type": "object",
"required": [
"pusher_type",
"ref",
"ref_type",
"repository",
"sender"
],
"properties": {
"installation": {
"$ref": "#/definitions/installation-lite"
},
"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 deleted 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§
§installation: Option<InstallationLite>
§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: DeleteEventRefType
The type of Git ref object deleted in the repository. Can be either branch
or tag
.
repository: Repository
§sender: User
Implementations§
Source§impl DeleteEvent
impl DeleteEvent
pub fn builder() -> DeleteEvent
Trait Implementations§
Source§impl Clone for DeleteEvent
impl Clone for DeleteEvent
Source§fn clone(&self) -> DeleteEvent
fn clone(&self) -> DeleteEvent
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 DeleteEvent
impl Debug for DeleteEvent
Source§impl<'de> Deserialize<'de> for DeleteEvent
impl<'de> Deserialize<'de> for DeleteEvent
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<&DeleteEvent> for DeleteEvent
impl From<&DeleteEvent> for DeleteEvent
Source§fn from(value: &DeleteEvent) -> Self
fn from(value: &DeleteEvent) -> Self
Converts to this type from the input type.
Source§impl From<DeleteEvent> for DeleteEvent
impl From<DeleteEvent> for DeleteEvent
Source§fn from(value: DeleteEvent) -> Self
fn from(value: DeleteEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for DeleteEvent
impl Serialize for DeleteEvent
Source§impl TryFrom<DeleteEvent> for DeleteEvent
impl TryFrom<DeleteEvent> for DeleteEvent
Auto Trait Implementations§
impl Freeze for DeleteEvent
impl RefUnwindSafe for DeleteEvent
impl Send for DeleteEvent
impl Sync for DeleteEvent
impl Unpin for DeleteEvent
impl UnwindSafe for DeleteEvent
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