pub struct DiscussionCategoryChanged {
pub action: DiscussionCategoryChangedAction,
pub changes: DiscussionCategoryChangedChanges,
pub discussion: Discussion,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
DiscussionCategoryChanged
JSON schema
{
"title": "discussion category changed event",
"type": "object",
"required": [
"action",
"changes",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"category_changed"
]
},
"changes": {
"type": "object",
"required": [
"category"
],
"properties": {
"category": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"required": [
"created_at",
"description",
"emoji",
"id",
"is_answerable",
"name",
"repository_id",
"slug",
"updated_at"
],
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"emoji": {
"type": "string"
},
"id": {
"type": "integer"
},
"is_answerable": {
"type": "boolean"
},
"name": {
"type": "string"
},
"repository_id": {
"type": "integer"
},
"slug": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"discussion": {
"$ref": "#/definitions/discussion"
},
"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: DiscussionCategoryChangedAction
§changes: DiscussionCategoryChangedChanges
§discussion: Discussion
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl DiscussionCategoryChanged
impl DiscussionCategoryChanged
pub fn builder() -> DiscussionCategoryChanged
Trait Implementations§
Source§impl Clone for DiscussionCategoryChanged
impl Clone for DiscussionCategoryChanged
Source§fn clone(&self) -> DiscussionCategoryChanged
fn clone(&self) -> DiscussionCategoryChanged
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 DiscussionCategoryChanged
impl Debug for DiscussionCategoryChanged
Source§impl<'de> Deserialize<'de> for DiscussionCategoryChanged
impl<'de> Deserialize<'de> for DiscussionCategoryChanged
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<&DiscussionCategoryChanged> for DiscussionCategoryChanged
impl From<&DiscussionCategoryChanged> for DiscussionCategoryChanged
Source§fn from(value: &DiscussionCategoryChanged) -> Self
fn from(value: &DiscussionCategoryChanged) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCategoryChanged> for DiscussionCategoryChanged
impl From<DiscussionCategoryChanged> for DiscussionCategoryChanged
Source§fn from(value: DiscussionCategoryChanged) -> Self
fn from(value: DiscussionCategoryChanged) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCategoryChanged> for DiscussionEvent
impl From<DiscussionCategoryChanged> for DiscussionEvent
Source§fn from(value: DiscussionCategoryChanged) -> Self
fn from(value: DiscussionCategoryChanged) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiscussionCategoryChanged
impl RefUnwindSafe for DiscussionCategoryChanged
impl Send for DiscussionCategoryChanged
impl Sync for DiscussionCategoryChanged
impl Unpin for DiscussionCategoryChanged
impl UnwindSafe for DiscussionCategoryChanged
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