pub struct LabelEdited {
pub action: LabelEditedAction,
pub changes: Option<LabelEditedChanges>,
pub installation: Option<InstallationLite>,
pub label: Label,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
LabelEdited
JSON schema
{
"title": "label edited event",
"type": "object",
"required": [
"action",
"label",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"edited"
]
},
"changes": {
"description": "The changes to the label if the action was `edited`.",
"type": "object",
"properties": {
"color": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the color if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
},
"description": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the description if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
},
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the name if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"label": {
"description": "The label that was edited.",
"$ref": "#/definitions/label"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: LabelEditedAction
§changes: Option<LabelEditedChanges>
§installation: Option<InstallationLite>
§label: Label
The label that was edited.
organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl LabelEdited
impl LabelEdited
pub fn builder() -> LabelEdited
Trait Implementations§
Source§impl Clone for LabelEdited
impl Clone for LabelEdited
Source§fn clone(&self) -> LabelEdited
fn clone(&self) -> LabelEdited
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 LabelEdited
impl Debug for LabelEdited
Source§impl<'de> Deserialize<'de> for LabelEdited
impl<'de> Deserialize<'de> for LabelEdited
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<&LabelEdited> for LabelEdited
impl From<&LabelEdited> for LabelEdited
Source§fn from(value: &LabelEdited) -> Self
fn from(value: &LabelEdited) -> Self
Converts to this type from the input type.
Source§impl From<LabelEdited> for LabelEdited
impl From<LabelEdited> for LabelEdited
Source§fn from(value: LabelEdited) -> Self
fn from(value: LabelEdited) -> Self
Converts to this type from the input type.
Source§impl From<LabelEdited> for LabelEvent
impl From<LabelEdited> for LabelEvent
Source§fn from(value: LabelEdited) -> Self
fn from(value: LabelEdited) -> Self
Converts to this type from the input type.
Source§impl Serialize for LabelEdited
impl Serialize for LabelEdited
Source§impl TryFrom<LabelEdited> for LabelEdited
impl TryFrom<LabelEdited> for LabelEdited
Auto Trait Implementations§
impl Freeze for LabelEdited
impl RefUnwindSafe for LabelEdited
impl Send for LabelEdited
impl Sync for LabelEdited
impl Unpin for LabelEdited
impl UnwindSafe for LabelEdited
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