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