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