pub struct WebhookCommitCommentCreatedComment {Show 14 fields
pub author_association: AuthorAssociation,
pub body: String,
pub commit_id: String,
pub created_at: String,
pub html_url: String,
pub id: i32,
pub line: Option<i32>,
pub node_id: String,
pub path: Option<String>,
pub position: Option<i32>,
pub reactions: Option<Box<Reactions>>,
pub updated_at: String,
pub url: String,
pub user: Option<Box<User>>,
}
Expand description
WebhookCommitCommentCreatedComment : The commit comment resource.
Fields§
How the author is associated with the repository.
body: String
The text of the comment.
commit_id: String
The SHA of the commit to which the comment applies.
created_at: String
§html_url: String
§id: i32
The ID of the commit 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
node_id: String
The node ID of the commit comment.
path: Option<String>
The relative path of the file to which the comment applies.
position: Option<i32>
The line index in the diff to which the comment applies.
reactions: Option<Box<Reactions>>
§updated_at: String
§url: String
§user: Option<Box<User>>
Implementations§
Source§impl WebhookCommitCommentCreatedComment
impl WebhookCommitCommentCreatedComment
Sourcepub fn new(
author_association: AuthorAssociation,
body: String,
commit_id: String,
created_at: String,
html_url: String,
id: i32,
line: Option<i32>,
node_id: String,
path: Option<String>,
position: Option<i32>,
updated_at: String,
url: String,
user: Option<User>,
) -> WebhookCommitCommentCreatedComment
pub fn new( author_association: AuthorAssociation, body: String, commit_id: String, created_at: String, html_url: String, id: i32, line: Option<i32>, node_id: String, path: Option<String>, position: Option<i32>, updated_at: String, url: String, user: Option<User>, ) -> WebhookCommitCommentCreatedComment
The commit comment resource.
Trait Implementations§
Source§impl Clone for WebhookCommitCommentCreatedComment
impl Clone for WebhookCommitCommentCreatedComment
Source§fn clone(&self) -> WebhookCommitCommentCreatedComment
fn clone(&self) -> WebhookCommitCommentCreatedComment
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 Default for WebhookCommitCommentCreatedComment
impl Default for WebhookCommitCommentCreatedComment
Source§fn default() -> WebhookCommitCommentCreatedComment
fn default() -> WebhookCommitCommentCreatedComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookCommitCommentCreatedComment
impl<'de> Deserialize<'de> for WebhookCommitCommentCreatedComment
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 WebhookCommitCommentCreatedComment
impl PartialEq for WebhookCommitCommentCreatedComment
Source§fn eq(&self, other: &WebhookCommitCommentCreatedComment) -> bool
fn eq(&self, other: &WebhookCommitCommentCreatedComment) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for WebhookCommitCommentCreatedComment
Auto Trait Implementations§
impl Freeze for WebhookCommitCommentCreatedComment
impl RefUnwindSafe for WebhookCommitCommentCreatedComment
impl Send for WebhookCommitCommentCreatedComment
impl Sync for WebhookCommitCommentCreatedComment
impl Unpin for WebhookCommitCommentCreatedComment
impl UnwindSafe for WebhookCommitCommentCreatedComment
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