pub struct MilestoneCreated {
pub action: MilestoneCreatedAction,
pub installation: Option<InstallationLite>,
pub milestone: MilestoneCreatedMilestone,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
MilestoneCreated
JSON schema
{
"title": "milestone created event",
"type": "object",
"required": [
"action",
"milestone",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"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: MilestoneCreatedAction
§installation: Option<InstallationLite>
§milestone: MilestoneCreatedMilestone
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl MilestoneCreated
impl MilestoneCreated
pub fn builder() -> MilestoneCreated
Trait Implementations§
Source§impl Clone for MilestoneCreated
impl Clone for MilestoneCreated
Source§fn clone(&self) -> MilestoneCreated
fn clone(&self) -> MilestoneCreated
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 MilestoneCreated
impl Debug for MilestoneCreated
Source§impl<'de> Deserialize<'de> for MilestoneCreated
impl<'de> Deserialize<'de> for MilestoneCreated
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<&MilestoneCreated> for MilestoneCreated
impl From<&MilestoneCreated> for MilestoneCreated
Source§fn from(value: &MilestoneCreated) -> Self
fn from(value: &MilestoneCreated) -> Self
Converts to this type from the input type.
Source§impl From<MilestoneCreated> for MilestoneCreated
impl From<MilestoneCreated> for MilestoneCreated
Source§fn from(value: MilestoneCreated) -> Self
fn from(value: MilestoneCreated) -> Self
Converts to this type from the input type.
Source§impl From<MilestoneCreated> for MilestoneEvent
impl From<MilestoneCreated> for MilestoneEvent
Source§fn from(value: MilestoneCreated) -> Self
fn from(value: MilestoneCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for MilestoneCreated
impl Serialize for MilestoneCreated
Source§impl TryFrom<MilestoneCreated> for MilestoneCreated
impl TryFrom<MilestoneCreated> for MilestoneCreated
Auto Trait Implementations§
impl Freeze for MilestoneCreated
impl RefUnwindSafe for MilestoneCreated
impl Send for MilestoneCreated
impl Sync for MilestoneCreated
impl Unpin for MilestoneCreated
impl UnwindSafe for MilestoneCreated
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