pub struct DiscussionUnlocked {
pub action: DiscussionUnlockedAction,
pub discussion: DiscussionUnlockedDiscussion,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
DiscussionUnlocked
JSON schema
{
"title": "discussion unlocked event",
"type": "object",
"required": [
"action",
"discussion",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"unlocked"
]
},
"discussion": {
"allOf": [
{
"$ref": "#/definitions/discussion"
},
{
"type": "object",
"required": [
"locked",
"state"
],
"properties": {
"locked": {
"type": "boolean",
"enum": [
false
]
},
"state": {
"type": "string",
"enum": [
"open"
]
}
},
"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: DiscussionUnlockedAction
§discussion: DiscussionUnlockedDiscussion
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl DiscussionUnlocked
impl DiscussionUnlocked
pub fn builder() -> DiscussionUnlocked
Trait Implementations§
Source§impl Clone for DiscussionUnlocked
impl Clone for DiscussionUnlocked
Source§fn clone(&self) -> DiscussionUnlocked
fn clone(&self) -> DiscussionUnlocked
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 DiscussionUnlocked
impl Debug for DiscussionUnlocked
Source§impl<'de> Deserialize<'de> for DiscussionUnlocked
impl<'de> Deserialize<'de> for DiscussionUnlocked
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<&DiscussionUnlocked> for DiscussionUnlocked
impl From<&DiscussionUnlocked> for DiscussionUnlocked
Source§fn from(value: &DiscussionUnlocked) -> Self
fn from(value: &DiscussionUnlocked) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionUnlocked> for DiscussionEvent
impl From<DiscussionUnlocked> for DiscussionEvent
Source§fn from(value: DiscussionUnlocked) -> Self
fn from(value: DiscussionUnlocked) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionUnlocked> for DiscussionUnlocked
impl From<DiscussionUnlocked> for DiscussionUnlocked
Source§fn from(value: DiscussionUnlocked) -> Self
fn from(value: DiscussionUnlocked) -> Self
Converts to this type from the input type.
Source§impl Serialize for DiscussionUnlocked
impl Serialize for DiscussionUnlocked
Auto Trait Implementations§
impl Freeze for DiscussionUnlocked
impl RefUnwindSafe for DiscussionUnlocked
impl Send for DiscussionUnlocked
impl Sync for DiscussionUnlocked
impl Unpin for DiscussionUnlocked
impl UnwindSafe for DiscussionUnlocked
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