pub struct InstallationRepositoriesRemoved {
pub action: InstallationRepositoriesRemovedAction,
pub installation: Installation,
pub repositories_added: Vec<InstallationRepositoriesRemovedRepositoriesAddedItem>,
pub repositories_removed: Vec<InstallationRepositoriesRemovedRepositoriesRemovedItem>,
pub repository_selection: InstallationRepositoriesRemovedRepositorySelection,
pub requester: Option<User>,
pub sender: User,
}
Expand description
InstallationRepositoriesRemoved
JSON schema
{
"title": "installation_repositories removed event",
"type": "object",
"required": [
"action",
"installation",
"repositories_added",
"repositories_removed",
"repository_selection",
"requester",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"removed"
]
},
"installation": {
"$ref": "#/definitions/installation"
},
"repositories_added": {
"description": "An array of repository objects, which were added to the installation.",
"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
},
"maxItems": 0
},
"repositories_removed": {
"description": "An array of repository objects, which were removed from the installation.",
"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
}
},
"repository_selection": {
"description": "Describe whether all repositories have been selected or there's a selection involved",
"type": "string",
"enum": [
"all",
"selected"
]
},
"requester": {
"oneOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: InstallationRepositoriesRemovedAction
§installation: Installation
§repositories_added: Vec<InstallationRepositoriesRemovedRepositoriesAddedItem>
An array of repository objects, which were added to the installation.
repositories_removed: Vec<InstallationRepositoriesRemovedRepositoriesRemovedItem>
An array of repository objects, which were removed from the installation.
repository_selection: InstallationRepositoriesRemovedRepositorySelection
Describe whether all repositories have been selected or there’s a selection involved
requester: Option<User>
§sender: User
Implementations§
Trait Implementations§
Source§impl Clone for InstallationRepositoriesRemoved
impl Clone for InstallationRepositoriesRemoved
Source§fn clone(&self) -> InstallationRepositoriesRemoved
fn clone(&self) -> InstallationRepositoriesRemoved
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<'de> Deserialize<'de> for InstallationRepositoriesRemoved
impl<'de> Deserialize<'de> for InstallationRepositoriesRemoved
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<&InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved
impl From<&InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved
Source§fn from(value: &InstallationRepositoriesRemoved) -> Self
fn from(value: &InstallationRepositoriesRemoved) -> Self
Converts to this type from the input type.
Source§impl From<InstallationRepositoriesRemoved> for InstallationRepositoriesEvent
impl From<InstallationRepositoriesRemoved> for InstallationRepositoriesEvent
Source§fn from(value: InstallationRepositoriesRemoved) -> Self
fn from(value: InstallationRepositoriesRemoved) -> Self
Converts to this type from the input type.
Source§impl From<InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved
impl From<InstallationRepositoriesRemoved> for InstallationRepositoriesRemoved
Source§fn from(value: InstallationRepositoriesRemoved) -> Self
fn from(value: InstallationRepositoriesRemoved) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstallationRepositoriesRemoved
impl RefUnwindSafe for InstallationRepositoriesRemoved
impl Send for InstallationRepositoriesRemoved
impl Sync for InstallationRepositoriesRemoved
impl Unpin for InstallationRepositoriesRemoved
impl UnwindSafe for InstallationRepositoriesRemoved
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