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