pub struct IssueCommentCreated {
pub action: IssueCommentCreatedAction,
pub comment: IssueComment,
pub installation: Option<InstallationLite>,
pub issue: IssueCommentCreatedIssue,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
IssueCommentCreated
JSON schema
{
"title": "issue_comment created event",
"type": "object",
"required": [
"action",
"comment",
"issue",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"comment": {
"$ref": "#/definitions/issue-comment"
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"issue": {
"description": "The [issue](https://docs.github.com/en/rest/reference/issues) the comment belongs to.",
"allOf": [
{
"$ref": "#/definitions/issue"
},
{
"type": "object",
"required": [
"assignee",
"labels",
"locked",
"state"
],
"properties": {
"assignee": {
"oneOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"labels": {
"type": "array",
"items": {
"$ref": "#/definitions/label"
}
},
"locked": {
"type": "boolean"
},
"state": {
"description": "State of the issue; either 'open' or 'closed'",
"type": "string",
"enum": [
"open",
"closed"
]
}
},
"tsAdditionalProperties": false
}
]
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: IssueCommentCreatedAction
§comment: IssueComment
§installation: Option<InstallationLite>
§issue: IssueCommentCreatedIssue
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl IssueCommentCreated
impl IssueCommentCreated
pub fn builder() -> IssueCommentCreated
Trait Implementations§
Source§impl Clone for IssueCommentCreated
impl Clone for IssueCommentCreated
Source§fn clone(&self) -> IssueCommentCreated
fn clone(&self) -> IssueCommentCreated
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 IssueCommentCreated
impl Debug for IssueCommentCreated
Source§impl<'de> Deserialize<'de> for IssueCommentCreated
impl<'de> Deserialize<'de> for IssueCommentCreated
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<&IssueCommentCreated> for IssueCommentCreated
impl From<&IssueCommentCreated> for IssueCommentCreated
Source§fn from(value: &IssueCommentCreated) -> Self
fn from(value: &IssueCommentCreated) -> Self
Converts to this type from the input type.
Source§impl From<IssueCommentCreated> for IssueCommentCreated
impl From<IssueCommentCreated> for IssueCommentCreated
Source§fn from(value: IssueCommentCreated) -> Self
fn from(value: IssueCommentCreated) -> Self
Converts to this type from the input type.
Source§impl From<IssueCommentCreated> for IssueCommentEvent
impl From<IssueCommentCreated> for IssueCommentEvent
Source§fn from(value: IssueCommentCreated) -> Self
fn from(value: IssueCommentCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for IssueCommentCreated
impl Serialize for IssueCommentCreated
Auto Trait Implementations§
impl Freeze for IssueCommentCreated
impl RefUnwindSafe for IssueCommentCreated
impl Send for IssueCommentCreated
impl Sync for IssueCommentCreated
impl Unpin for IssueCommentCreated
impl UnwindSafe for IssueCommentCreated
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