pub struct MetaDeleted {
pub action: MetaDeletedAction,
pub hook: MetaDeletedHook,
pub hook_id: i64,
pub repository: Repository,
pub sender: User,
}
Expand description
MetaDeleted
JSON schema
{
"title": "meta deleted event",
"type": "object",
"required": [
"action",
"hook",
"hook_id",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"deleted"
]
},
"hook": {
"description": "The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace.",
"type": "object",
"required": [
"active",
"config",
"created_at",
"events",
"id",
"name",
"type",
"updated_at"
],
"properties": {
"active": {
"type": "boolean"
},
"config": {
"description": "Configuration object of the webhook",
"type": "object",
"required": [
"content_type",
"insecure_ssl",
"url"
],
"properties": {
"content_type": {
"description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
"type": "string",
"enum": [
"json",
"form"
]
},
"insecure_ssl": {
"description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`.",
"type": "string",
"enum": [
"0",
"1"
]
},
"secret": {
"description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
"type": "string"
},
"url": {
"description": "The URL to which the payloads will be delivered.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
},
"created_at": {
"type": "string",
"format": "date-time"
},
"events": {
"$ref": "#/definitions/webhook-events"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
},
"hook_id": {
"description": "The id of the modified webhook.",
"type": "integer"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: MetaDeletedAction
§hook: MetaDeletedHook
§hook_id: i64
The id of the modified webhook.
repository: Repository
§sender: User
Implementations§
Source§impl MetaDeleted
impl MetaDeleted
pub fn builder() -> MetaDeleted
Trait Implementations§
Source§impl Clone for MetaDeleted
impl Clone for MetaDeleted
Source§fn clone(&self) -> MetaDeleted
fn clone(&self) -> MetaDeleted
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 MetaDeleted
impl Debug for MetaDeleted
Source§impl<'de> Deserialize<'de> for MetaDeleted
impl<'de> Deserialize<'de> for MetaDeleted
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<&MetaDeleted> for MetaDeleted
impl From<&MetaDeleted> for MetaDeleted
Source§fn from(value: &MetaDeleted) -> Self
fn from(value: &MetaDeleted) -> Self
Converts to this type from the input type.
Source§impl From<MetaDeleted> for MetaDeleted
impl From<MetaDeleted> for MetaDeleted
Source§fn from(value: MetaDeleted) -> Self
fn from(value: MetaDeleted) -> Self
Converts to this type from the input type.
Source§impl From<MetaDeleted> for MetaEvent
impl From<MetaDeleted> for MetaEvent
Source§fn from(value: MetaDeleted) -> Self
fn from(value: MetaDeleted) -> Self
Converts to this type from the input type.
Source§impl From<MetaEvent> for MetaDeleted
impl From<MetaEvent> for MetaDeleted
Source§impl Serialize for MetaDeleted
impl Serialize for MetaDeleted
Source§impl TryFrom<MetaDeleted> for MetaDeleted
impl TryFrom<MetaDeleted> for MetaDeleted
Auto Trait Implementations§
impl Freeze for MetaDeleted
impl RefUnwindSafe for MetaDeleted
impl Send for MetaDeleted
impl Sync for MetaDeleted
impl Unpin for MetaDeleted
impl UnwindSafe for MetaDeleted
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