pub struct LabelCreated {
pub action: LabelCreatedAction,
pub installation: Option<InstallationLite>,
pub label: Label,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
LabelCreated
JSON schema
{
"title": "label created event",
"type": "object",
"required": [
"action",
"label",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"label": {
"description": "The label that was added.",
"$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: LabelCreatedAction
§installation: Option<InstallationLite>
§label: Label
The label that was added.
organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl LabelCreated
impl LabelCreated
pub fn builder() -> LabelCreated
Trait Implementations§
Source§impl Clone for LabelCreated
impl Clone for LabelCreated
Source§fn clone(&self) -> LabelCreated
fn clone(&self) -> LabelCreated
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 LabelCreated
impl Debug for LabelCreated
Source§impl<'de> Deserialize<'de> for LabelCreated
impl<'de> Deserialize<'de> for LabelCreated
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<&LabelCreated> for LabelCreated
impl From<&LabelCreated> for LabelCreated
Source§fn from(value: &LabelCreated) -> Self
fn from(value: &LabelCreated) -> Self
Converts to this type from the input type.
Source§impl From<LabelCreated> for LabelCreated
impl From<LabelCreated> for LabelCreated
Source§fn from(value: LabelCreated) -> Self
fn from(value: LabelCreated) -> Self
Converts to this type from the input type.
Source§impl From<LabelCreated> for LabelEvent
impl From<LabelCreated> for LabelEvent
Source§fn from(value: LabelCreated) -> Self
fn from(value: LabelCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for LabelCreated
impl Serialize for LabelCreated
Source§impl TryFrom<LabelCreated> for LabelCreated
impl TryFrom<LabelCreated> for LabelCreated
Auto Trait Implementations§
impl Freeze for LabelCreated
impl RefUnwindSafe for LabelCreated
impl Send for LabelCreated
impl Sync for LabelCreated
impl Unpin for LabelCreated
impl UnwindSafe for LabelCreated
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