pub struct PullRequestReview {
pub author_association: AuthorAssociation,
pub body: Option<String>,
pub commit_id: String,
pub html_url: String,
pub id: i64,
pub links: PullRequestReviewLinks,
pub node_id: String,
pub pull_request_url: String,
pub state: PullRequestReviewState,
pub submitted_at: Option<DateTime<Utc>>,
pub user: User,
}
Expand description
The review that was affected.
JSON schema
{
"title": "Pull Request Review",
"description": "The review that was affected.",
"type": "object",
"required": [
"_links",
"author_association",
"body",
"commit_id",
"html_url",
"id",
"node_id",
"pull_request_url",
"state",
"submitted_at",
"user"
],
"properties": {
"_links": {
"type": "object",
"required": [
"html",
"pull_request"
],
"properties": {
"html": {
"$ref": "#/definitions/link"
},
"pull_request": {
"$ref": "#/definitions/link"
}
},
"additionalProperties": false
},
"author_association": {
"$ref": "#/definitions/author_association"
},
"body": {
"description": "The text of the review.",
"type": [
"string",
"null"
]
},
"commit_id": {
"description": "A commit SHA for the review.",
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "Unique identifier of the review",
"type": "integer"
},
"node_id": {
"type": "string"
},
"pull_request_url": {
"type": "string",
"format": "uri"
},
"state": {
"type": "string",
"enum": [
"commented",
"changes_requested",
"approved",
"dismissed"
]
},
"submitted_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"user": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§body: Option<String>
The text of the review.
commit_id: String
A commit SHA for the review.
html_url: String
§id: i64
Unique identifier of the review
links: PullRequestReviewLinks
§node_id: String
§pull_request_url: String
§state: PullRequestReviewState
§submitted_at: Option<DateTime<Utc>>
§user: User
Implementations§
Source§impl PullRequestReview
impl PullRequestReview
pub fn builder() -> PullRequestReview
Trait Implementations§
Source§impl Clone for PullRequestReview
impl Clone for PullRequestReview
Source§fn clone(&self) -> PullRequestReview
fn clone(&self) -> PullRequestReview
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 PullRequestReview
impl Debug for PullRequestReview
Source§impl<'de> Deserialize<'de> for PullRequestReview
impl<'de> Deserialize<'de> for PullRequestReview
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<&PullRequestReview> for PullRequestReview
impl From<&PullRequestReview> for PullRequestReview
Source§fn from(value: &PullRequestReview) -> Self
fn from(value: &PullRequestReview) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestReview> for PullRequestReview
impl From<PullRequestReview> for PullRequestReview
Source§fn from(value: PullRequestReview) -> Self
fn from(value: PullRequestReview) -> Self
Converts to this type from the input type.
Source§impl Serialize for PullRequestReview
impl Serialize for PullRequestReview
Source§impl TryFrom<PullRequestReview> for PullRequestReview
impl TryFrom<PullRequestReview> for PullRequestReview
Auto Trait Implementations§
impl Freeze for PullRequestReview
impl RefUnwindSafe for PullRequestReview
impl Send for PullRequestReview
impl Sync for PullRequestReview
impl Unpin for PullRequestReview
impl UnwindSafe for PullRequestReview
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