pub struct ReviewComment {Show 28 fields
pub url: String,
pub pull_request_review_id: Option<i32>,
pub id: i32,
pub node_id: String,
pub diff_hunk: String,
pub path: String,
pub position: Option<i32>,
pub original_position: i32,
pub commit_id: String,
pub original_commit_id: String,
pub in_reply_to_id: Option<i32>,
pub user: Option<Box<NullableSimpleUser>>,
pub body: String,
pub created_at: String,
pub updated_at: String,
pub html_url: String,
pub pull_request_url: String,
pub author_association: AuthorAssociation,
pub _links: Box<ReviewCommentLinks>,
pub body_text: Option<String>,
pub body_html: Option<String>,
pub reactions: Option<Box<ReactionRollup>>,
pub side: Option<Side>,
pub start_side: Option<Option<StartSide>>,
pub line: Option<i32>,
pub original_line: Option<i32>,
pub start_line: Option<Option<i32>>,
pub original_start_line: Option<Option<i32>>,
}
Expand description
ReviewComment : Legacy Review Comment
Fields§
§url: String
§pull_request_review_id: Option<i32>
§id: i32
§node_id: String
§diff_hunk: String
§path: String
§position: Option<i32>
§original_position: i32
§commit_id: String
§original_commit_id: String
§in_reply_to_id: Option<i32>
§user: Option<Box<NullableSimpleUser>>
§body: String
§created_at: String
§updated_at: String
§html_url: String
§pull_request_url: String
§_links: Box<ReviewCommentLinks>
§body_text: Option<String>
§body_html: Option<String>
§reactions: Option<Box<ReactionRollup>>
§side: Option<Side>
The side of the first line of the range for a multi-line comment.
start_side: Option<Option<StartSide>>
The side of the first line of the range for a multi-line comment.
line: Option<i32>
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
original_line: Option<i32>
The original line of the blob to which the comment applies. The last line of the range for a multi-line comment
start_line: Option<Option<i32>>
The first line of the range for a multi-line comment.
original_start_line: Option<Option<i32>>
The original first line of the range for a multi-line comment.
Implementations§
Source§impl ReviewComment
impl ReviewComment
Sourcepub fn new(
url: String,
pull_request_review_id: Option<i32>,
id: i32,
node_id: String,
diff_hunk: String,
path: String,
position: Option<i32>,
original_position: i32,
commit_id: String,
original_commit_id: String,
user: Option<NullableSimpleUser>,
body: String,
created_at: String,
updated_at: String,
html_url: String,
pull_request_url: String,
author_association: AuthorAssociation,
_links: ReviewCommentLinks,
) -> ReviewComment
pub fn new( url: String, pull_request_review_id: Option<i32>, id: i32, node_id: String, diff_hunk: String, path: String, position: Option<i32>, original_position: i32, commit_id: String, original_commit_id: String, user: Option<NullableSimpleUser>, body: String, created_at: String, updated_at: String, html_url: String, pull_request_url: String, author_association: AuthorAssociation, _links: ReviewCommentLinks, ) -> ReviewComment
Legacy Review Comment
Trait Implementations§
Source§impl Clone for ReviewComment
impl Clone for ReviewComment
Source§fn clone(&self) -> ReviewComment
fn clone(&self) -> ReviewComment
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 ReviewComment
impl Debug for ReviewComment
Source§impl Default for ReviewComment
impl Default for ReviewComment
Source§fn default() -> ReviewComment
fn default() -> ReviewComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReviewComment
impl<'de> Deserialize<'de> for ReviewComment
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 PartialEq for ReviewComment
impl PartialEq for ReviewComment
Source§impl Serialize for ReviewComment
impl Serialize for ReviewComment
impl StructuralPartialEq for ReviewComment
Auto Trait Implementations§
impl Freeze for ReviewComment
impl RefUnwindSafe for ReviewComment
impl Send for ReviewComment
impl Sync for ReviewComment
impl Unpin for ReviewComment
impl UnwindSafe for ReviewComment
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