pub struct DiscussionCreated {
pub action: DiscussionCreatedAction,
pub discussion: DiscussionCreatedDiscussion,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
DiscussionCreated
JSON schema
{
"title": "discussion created event",
"type": "object",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"discussion": {
"allOf": [
{
"$ref": "#/definitions/discussion"
},
{
"type": "object",
"required": [
"answer_chosen_at",
"answer_chosen_by",
"answer_html_url",
"locked",
"state"
],
"properties": {
"answer_chosen_at": {
"type": "null"
},
"answer_chosen_by": {
"type": "null"
},
"answer_html_url": {
"type": "null"
},
"locked": {
"type": "boolean",
"enum": [
false
]
},
"state": {
"type": "string",
"enum": [
"open",
"converting"
]
}
},
"tsAdditionalProperties": false
}
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: DiscussionCreatedAction
§discussion: DiscussionCreatedDiscussion
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl DiscussionCreated
impl DiscussionCreated
pub fn builder() -> DiscussionCreated
Trait Implementations§
Source§impl Clone for DiscussionCreated
impl Clone for DiscussionCreated
Source§fn clone(&self) -> DiscussionCreated
fn clone(&self) -> DiscussionCreated
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 DiscussionCreated
impl Debug for DiscussionCreated
Source§impl<'de> Deserialize<'de> for DiscussionCreated
impl<'de> Deserialize<'de> for DiscussionCreated
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<&DiscussionCreated> for DiscussionCreated
impl From<&DiscussionCreated> for DiscussionCreated
Source§fn from(value: &DiscussionCreated) -> Self
fn from(value: &DiscussionCreated) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCreated> for DiscussionCreated
impl From<DiscussionCreated> for DiscussionCreated
Source§fn from(value: DiscussionCreated) -> Self
fn from(value: DiscussionCreated) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCreated> for DiscussionEvent
impl From<DiscussionCreated> for DiscussionEvent
Source§fn from(value: DiscussionCreated) -> Self
fn from(value: DiscussionCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for DiscussionCreated
impl Serialize for DiscussionCreated
Source§impl TryFrom<DiscussionCreated> for DiscussionCreated
impl TryFrom<DiscussionCreated> for DiscussionCreated
Auto Trait Implementations§
impl Freeze for DiscussionCreated
impl RefUnwindSafe for DiscussionCreated
impl Send for DiscussionCreated
impl Sync for DiscussionCreated
impl Unpin for DiscussionCreated
impl UnwindSafe for DiscussionCreated
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