pub struct CommitCommentCreatedComment {Show 13 fields
pub author_association: AuthorAssociation,
pub body: String,
pub commit_id: String,
pub created_at: DateTime<Utc>,
pub html_url: String,
pub id: i64,
pub line: Option<i64>,
pub node_id: String,
pub path: Option<String>,
pub position: Option<i64>,
pub updated_at: DateTime<Utc>,
pub url: String,
pub user: User,
}
Expand description
The commit comment resource.
JSON schema
{
"description": "The [commit comment](https://docs.github.com/en/rest/reference/repos#get-a-commit-comment) resource.",
"type": "object",
"required": [
"author_association",
"body",
"commit_id",
"created_at",
"html_url",
"id",
"line",
"node_id",
"path",
"position",
"updated_at",
"url",
"user"
],
"properties": {
"author_association": {
"$ref": "#/definitions/author_association"
},
"body": {
"description": "The text of the comment.",
"type": "string"
},
"commit_id": {
"description": "The SHA of the commit to which the comment applies.",
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "The ID of the commit comment.",
"type": "integer"
},
"line": {
"description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment",
"type": [
"integer",
"null"
]
},
"node_id": {
"description": "The node ID of the commit comment.",
"type": "string"
},
"path": {
"description": "The relative path of the file to which the comment applies.",
"type": [
"string",
"null"
]
},
"position": {
"description": "The line index in the diff to which the comment applies.",
"type": [
"integer",
"null"
]
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"url": {
"type": "string",
"format": "uri"
},
"user": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false
}
Fields§
§body: String
The text of the comment.
commit_id: String
The SHA of the commit to which the comment applies.
created_at: DateTime<Utc>
§html_url: String
§id: i64
The ID of the commit comment.
line: Option<i64>
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<i64>
The line index in the diff to which the comment applies.
updated_at: DateTime<Utc>
§url: String
§user: User
Implementations§
Trait Implementations§
Source§impl Clone for CommitCommentCreatedComment
impl Clone for CommitCommentCreatedComment
Source§fn clone(&self) -> CommitCommentCreatedComment
fn clone(&self) -> CommitCommentCreatedComment
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 CommitCommentCreatedComment
impl Debug for CommitCommentCreatedComment
Source§impl<'de> Deserialize<'de> for CommitCommentCreatedComment
impl<'de> Deserialize<'de> for CommitCommentCreatedComment
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<&CommitCommentCreatedComment> for CommitCommentCreatedComment
impl From<&CommitCommentCreatedComment> for CommitCommentCreatedComment
Source§fn from(value: &CommitCommentCreatedComment) -> Self
fn from(value: &CommitCommentCreatedComment) -> Self
Converts to this type from the input type.
Source§impl From<CommitCommentCreatedComment> for CommitCommentCreatedComment
impl From<CommitCommentCreatedComment> for CommitCommentCreatedComment
Source§fn from(value: CommitCommentCreatedComment) -> Self
fn from(value: CommitCommentCreatedComment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommitCommentCreatedComment
impl RefUnwindSafe for CommitCommentCreatedComment
impl Send for CommitCommentCreatedComment
impl Sync for CommitCommentCreatedComment
impl Unpin for CommitCommentCreatedComment
impl UnwindSafe for CommitCommentCreatedComment
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