pub struct PullRequestLocked {
pub action: PullRequestLockedAction,
pub installation: Option<InstallationLite>,
pub number: i64,
pub organization: Option<Organization>,
pub pull_request: PullRequest,
pub repository: Repository,
pub sender: User,
}
Expand description
PullRequestLocked
JSON schema
{
"title": "pull_request locked event",
"type": "object",
"required": [
"action",
"number",
"pull_request",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"locked"
]
},
"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: PullRequestLockedAction
§installation: Option<InstallationLite>
§number: i64
The pull request number.
organization: Option<Organization>
§pull_request: PullRequest
§repository: Repository
§sender: User
Implementations§
Source§impl PullRequestLocked
impl PullRequestLocked
pub fn builder() -> PullRequestLocked
Trait Implementations§
Source§impl Clone for PullRequestLocked
impl Clone for PullRequestLocked
Source§fn clone(&self) -> PullRequestLocked
fn clone(&self) -> PullRequestLocked
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 PullRequestLocked
impl Debug for PullRequestLocked
Source§impl<'de> Deserialize<'de> for PullRequestLocked
impl<'de> Deserialize<'de> for PullRequestLocked
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<&PullRequestLocked> for PullRequestLocked
impl From<&PullRequestLocked> for PullRequestLocked
Source§fn from(value: &PullRequestLocked) -> Self
fn from(value: &PullRequestLocked) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestLocked> for PullRequestEvent
impl From<PullRequestLocked> for PullRequestEvent
Source§fn from(value: PullRequestLocked) -> Self
fn from(value: PullRequestLocked) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestLocked> for PullRequestLocked
impl From<PullRequestLocked> for PullRequestLocked
Source§fn from(value: PullRequestLocked) -> Self
fn from(value: PullRequestLocked) -> Self
Converts to this type from the input type.
Source§impl Serialize for PullRequestLocked
impl Serialize for PullRequestLocked
Source§impl TryFrom<PullRequestLocked> for PullRequestLocked
impl TryFrom<PullRequestLocked> for PullRequestLocked
Auto Trait Implementations§
impl Freeze for PullRequestLocked
impl RefUnwindSafe for PullRequestLocked
impl Send for PullRequestLocked
impl Sync for PullRequestLocked
impl Unpin for PullRequestLocked
impl UnwindSafe for PullRequestLocked
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