pub enum PullRequestReviewRequested {
Variant0 {
action: PullRequestReviewRequestedVariant0Action,
installation: Option<InstallationLite>,
number: i64,
organization: Option<Organization>,
pull_request: PullRequest,
repository: Repository,
requested_reviewer: User,
sender: User,
},
Variant1 {
action: PullRequestReviewRequestedVariant1Action,
installation: Option<InstallationLite>,
number: i64,
organization: Option<Organization>,
pull_request: PullRequest,
repository: Repository,
requested_team: Team,
sender: User,
},
}
Expand description
PullRequestReviewRequested
JSON schema
{
"title": "pull_request review_requested event",
"oneOf": [
{
"type": "object",
"required": [
"action",
"number",
"pull_request",
"repository",
"requested_reviewer",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"review_requested"
]
},
"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"
},
"requested_reviewer": {
"$ref": "#/definitions/user"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"action",
"number",
"pull_request",
"repository",
"requested_team",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"review_requested"
]
},
"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"
},
"requested_team": {
"$ref": "#/definitions/team"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false
}
],
"$schema": "http://json-schema.org/draft-07/schema"
}
Variants§
Variant0
Fields
§
installation: Option<InstallationLite>
§
organization: Option<Organization>
§
pull_request: PullRequest
§
repository: Repository
Variant1
Fields
§
installation: Option<InstallationLite>
§
organization: Option<Organization>
§
pull_request: PullRequest
§
repository: Repository
Trait Implementations§
Source§impl Clone for PullRequestReviewRequested
impl Clone for PullRequestReviewRequested
Source§fn clone(&self) -> PullRequestReviewRequested
fn clone(&self) -> PullRequestReviewRequested
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 PullRequestReviewRequested
impl Debug for PullRequestReviewRequested
Source§impl<'de> Deserialize<'de> for PullRequestReviewRequested
impl<'de> Deserialize<'de> for PullRequestReviewRequested
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<&PullRequestReviewRequested> for PullRequestReviewRequested
impl From<&PullRequestReviewRequested> for PullRequestReviewRequested
Source§fn from(value: &PullRequestReviewRequested) -> Self
fn from(value: &PullRequestReviewRequested) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestReviewRequested> for PullRequestEvent
impl From<PullRequestReviewRequested> for PullRequestEvent
Source§fn from(value: PullRequestReviewRequested) -> Self
fn from(value: PullRequestReviewRequested) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PullRequestReviewRequested
impl RefUnwindSafe for PullRequestReviewRequested
impl Send for PullRequestReviewRequested
impl Sync for PullRequestReviewRequested
impl Unpin for PullRequestReviewRequested
impl UnwindSafe for PullRequestReviewRequested
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