pub struct InstallationCreated {
pub action: InstallationCreatedAction,
pub installation: Installation,
pub repositories: Vec<InstallationCreatedRepositoriesItem>,
pub requester: Option<User>,
pub sender: User,
}
Expand description
InstallationCreated
JSON schema
{
"title": "installation created event",
"type": "object",
"required": [
"action",
"installation",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"installation": {
"$ref": "#/definitions/installation"
},
"repositories": {
"description": "An array of repository objects that the installation can access.",
"type": "array",
"items": {
"type": "object",
"required": [
"full_name",
"id",
"name",
"node_id",
"private"
],
"properties": {
"full_name": {
"type": "string"
},
"id": {
"description": "Unique identifier of the repository",
"type": "integer"
},
"name": {
"description": "The name of the repository.",
"type": "string"
},
"node_id": {
"type": "string"
},
"private": {
"description": "Whether the repository is private or public.",
"type": "boolean"
}
},
"additionalProperties": false
}
},
"requester": {
"$ref": "#/definitions/user"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: InstallationCreatedAction
§installation: Installation
§repositories: Vec<InstallationCreatedRepositoriesItem>
An array of repository objects that the installation can access.
requester: Option<User>
§sender: User
Implementations§
Source§impl InstallationCreated
impl InstallationCreated
pub fn builder() -> InstallationCreated
Trait Implementations§
Source§impl Clone for InstallationCreated
impl Clone for InstallationCreated
Source§fn clone(&self) -> InstallationCreated
fn clone(&self) -> InstallationCreated
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 InstallationCreated
impl Debug for InstallationCreated
Source§impl<'de> Deserialize<'de> for InstallationCreated
impl<'de> Deserialize<'de> for InstallationCreated
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<&InstallationCreated> for InstallationCreated
impl From<&InstallationCreated> for InstallationCreated
Source§fn from(value: &InstallationCreated) -> Self
fn from(value: &InstallationCreated) -> Self
Converts to this type from the input type.
Source§impl From<InstallationCreated> for InstallationCreated
impl From<InstallationCreated> for InstallationCreated
Source§fn from(value: InstallationCreated) -> Self
fn from(value: InstallationCreated) -> Self
Converts to this type from the input type.
Source§impl From<InstallationCreated> for InstallationEvent
impl From<InstallationCreated> for InstallationEvent
Source§fn from(value: InstallationCreated) -> Self
fn from(value: InstallationCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for InstallationCreated
impl Serialize for InstallationCreated
Auto Trait Implementations§
impl Freeze for InstallationCreated
impl RefUnwindSafe for InstallationCreated
impl Send for InstallationCreated
impl Sync for InstallationCreated
impl Unpin for InstallationCreated
impl UnwindSafe for InstallationCreated
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