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