pub struct PullRequestClosed {
pub action: PullRequestClosedAction,
pub installation: Option<InstallationLite>,
pub number: i64,
pub organization: Option<Organization>,
pub pull_request: PullRequestClosedPullRequest,
pub repository: Repository,
pub sender: User,
}
Expand description
PullRequestClosed
JSON schema
{
"title": "pull_request closed event",
"type": "object",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"closed"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"number": {
"description": "The pull request number.",
"type": "integer"
},
"organization": {
"$ref": "#/definitions/organization"
},
"pull_request": {
"allOf": [
{
"$ref": "#/definitions/pull-request"
},
{
"type": "object",
"required": [
"closed_at",
"merged",
"state"
],
"properties": {
"closed_at": {
"type": "string",
"format": "date-time"
},
"merged": {
"type": "boolean"
},
"state": {
"description": "State of this Pull Request. Either `open` or `closed`.",
"type": "string",
"enum": [
"closed"
]
}
},
"tsAdditionalProperties": false
}
]
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: PullRequestClosedAction
§installation: Option<InstallationLite>
§number: i64
The pull request number.
organization: Option<Organization>
§pull_request: PullRequestClosedPullRequest
§repository: Repository
§sender: User
Implementations§
Source§impl PullRequestClosed
impl PullRequestClosed
pub fn builder() -> PullRequestClosed
Trait Implementations§
Source§impl Clone for PullRequestClosed
impl Clone for PullRequestClosed
Source§fn clone(&self) -> PullRequestClosed
fn clone(&self) -> PullRequestClosed
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 PullRequestClosed
impl Debug for PullRequestClosed
Source§impl<'de> Deserialize<'de> for PullRequestClosed
impl<'de> Deserialize<'de> for PullRequestClosed
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<&PullRequestClosed> for PullRequestClosed
impl From<&PullRequestClosed> for PullRequestClosed
Source§fn from(value: &PullRequestClosed) -> Self
fn from(value: &PullRequestClosed) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestClosed> for PullRequestClosed
impl From<PullRequestClosed> for PullRequestClosed
Source§fn from(value: PullRequestClosed) -> Self
fn from(value: PullRequestClosed) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestClosed> for PullRequestEvent
impl From<PullRequestClosed> for PullRequestEvent
Source§fn from(value: PullRequestClosed) -> Self
fn from(value: PullRequestClosed) -> Self
Converts to this type from the input type.
Source§impl Serialize for PullRequestClosed
impl Serialize for PullRequestClosed
Source§impl TryFrom<PullRequestClosed> for PullRequestClosed
impl TryFrom<PullRequestClosed> for PullRequestClosed
Auto Trait Implementations§
impl Freeze for PullRequestClosed
impl RefUnwindSafe for PullRequestClosed
impl Send for PullRequestClosed
impl Sync for PullRequestClosed
impl Unpin for PullRequestClosed
impl UnwindSafe for PullRequestClosed
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