pub struct DeployKeyCreated {
pub action: DeployKeyCreatedAction,
pub installation: Option<InstallationLite>,
pub key: DeployKeyCreatedKey,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
DeployKeyCreated
JSON schema
{
"title": "deploy_key created event",
"type": "object",
"required": [
"action",
"key",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"key": {
"description": "The [`deploy key`](https://docs.github.com/en/rest/reference/deployments#get-a-deploy-key) resource.",
"type": "object",
"required": [
"created_at",
"id",
"key",
"read_only",
"title",
"url",
"verified"
],
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"read_only": {
"type": "boolean"
},
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"verified": {
"type": "boolean"
}
},
"additionalProperties": false
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: DeployKeyCreatedAction
§installation: Option<InstallationLite>
§key: DeployKeyCreatedKey
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl DeployKeyCreated
impl DeployKeyCreated
pub fn builder() -> DeployKeyCreated
Trait Implementations§
Source§impl Clone for DeployKeyCreated
impl Clone for DeployKeyCreated
Source§fn clone(&self) -> DeployKeyCreated
fn clone(&self) -> DeployKeyCreated
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 DeployKeyCreated
impl Debug for DeployKeyCreated
Source§impl<'de> Deserialize<'de> for DeployKeyCreated
impl<'de> Deserialize<'de> for DeployKeyCreated
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<&DeployKeyCreated> for DeployKeyCreated
impl From<&DeployKeyCreated> for DeployKeyCreated
Source§fn from(value: &DeployKeyCreated) -> Self
fn from(value: &DeployKeyCreated) -> Self
Converts to this type from the input type.
Source§impl From<DeployKeyCreated> for DeployKeyCreated
impl From<DeployKeyCreated> for DeployKeyCreated
Source§fn from(value: DeployKeyCreated) -> Self
fn from(value: DeployKeyCreated) -> Self
Converts to this type from the input type.
Source§impl From<DeployKeyCreated> for DeployKeyEvent
impl From<DeployKeyCreated> for DeployKeyEvent
Source§fn from(value: DeployKeyCreated) -> Self
fn from(value: DeployKeyCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for DeployKeyCreated
impl Serialize for DeployKeyCreated
Source§impl TryFrom<DeployKeyCreated> for DeployKeyCreated
impl TryFrom<DeployKeyCreated> for DeployKeyCreated
Auto Trait Implementations§
impl Freeze for DeployKeyCreated
impl RefUnwindSafe for DeployKeyCreated
impl Send for DeployKeyCreated
impl Sync for DeployKeyCreated
impl Unpin for DeployKeyCreated
impl UnwindSafe for DeployKeyCreated
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