pub struct PullRequestEdited {
pub action: PullRequestEditedAction,
pub changes: PullRequestEditedChanges,
pub installation: Option<InstallationLite>,
pub number: i64,
pub organization: Option<Organization>,
pub pull_request: PullRequest,
pub repository: Repository,
pub sender: User,
}
Expand description
PullRequestEdited
JSON schema
{
"title": "pull_request edited event",
"type": "object",
"required": [
"action",
"changes",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"edited"
]
},
"changes": {
"description": "The changes to the comment if the action was `edited`.",
"type": "object",
"properties": {
"base": {
"type": "object",
"required": [
"ref",
"sha"
],
"properties": {
"ref": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
},
"additionalProperties": false
},
"sha": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"body": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the body if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
},
"title": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the title if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"number": {
"description": "The pull request number.",
"type": "integer"
},
"organization": {
"$ref": "#/definitions/organization"
},
"pull_request": {
"$ref": "#/definitions/pull-request"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: PullRequestEditedAction
§changes: PullRequestEditedChanges
§installation: Option<InstallationLite>
§number: i64
The pull request number.
organization: Option<Organization>
§pull_request: PullRequest
§repository: Repository
§sender: User
Implementations§
Source§impl PullRequestEdited
impl PullRequestEdited
pub fn builder() -> PullRequestEdited
Trait Implementations§
Source§impl Clone for PullRequestEdited
impl Clone for PullRequestEdited
Source§fn clone(&self) -> PullRequestEdited
fn clone(&self) -> PullRequestEdited
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 PullRequestEdited
impl Debug for PullRequestEdited
Source§impl<'de> Deserialize<'de> for PullRequestEdited
impl<'de> Deserialize<'de> for PullRequestEdited
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<&PullRequestEdited> for PullRequestEdited
impl From<&PullRequestEdited> for PullRequestEdited
Source§fn from(value: &PullRequestEdited) -> Self
fn from(value: &PullRequestEdited) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestEdited> for PullRequestEdited
impl From<PullRequestEdited> for PullRequestEdited
Source§fn from(value: PullRequestEdited) -> Self
fn from(value: PullRequestEdited) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestEdited> for PullRequestEvent
impl From<PullRequestEdited> for PullRequestEvent
Source§fn from(value: PullRequestEdited) -> Self
fn from(value: PullRequestEdited) -> Self
Converts to this type from the input type.
Source§impl Serialize for PullRequestEdited
impl Serialize for PullRequestEdited
Source§impl TryFrom<PullRequestEdited> for PullRequestEdited
impl TryFrom<PullRequestEdited> for PullRequestEdited
Auto Trait Implementations§
impl Freeze for PullRequestEdited
impl RefUnwindSafe for PullRequestEdited
impl Send for PullRequestEdited
impl Sync for PullRequestEdited
impl Unpin for PullRequestEdited
impl UnwindSafe for PullRequestEdited
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