pub struct RepositoryVulnerabilityAlertCreate {
pub action: RepositoryVulnerabilityAlertCreateAction,
pub alert: RepositoryVulnerabilityAlertCreateAlert,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: GithubOrg,
}
Expand description
RepositoryVulnerabilityAlertCreate
JSON schema
{
"title": "repository_vulnerability_alert create event",
"type": "object",
"required": [
"action",
"alert",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"create"
]
},
"alert": {
"allOf": [
{
"$ref": "#/definitions/repository-vulnerability-alert-alert"
},
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"type": "string",
"enum": [
"open"
]
}
},
"tsAdditionalProperties": false
}
]
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/github-org"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: RepositoryVulnerabilityAlertCreateAction
§alert: RepositoryVulnerabilityAlertCreateAlert
§organization: Option<Organization>
§repository: Repository
§sender: GithubOrg
Implementations§
Trait Implementations§
Source§impl Clone for RepositoryVulnerabilityAlertCreate
impl Clone for RepositoryVulnerabilityAlertCreate
Source§fn clone(&self) -> RepositoryVulnerabilityAlertCreate
fn clone(&self) -> RepositoryVulnerabilityAlertCreate
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 RepositoryVulnerabilityAlertCreate
impl<'de> Deserialize<'de> for RepositoryVulnerabilityAlertCreate
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<&RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertCreate
impl From<&RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertCreate
Source§fn from(value: &RepositoryVulnerabilityAlertCreate) -> Self
fn from(value: &RepositoryVulnerabilityAlertCreate) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertCreate
impl From<RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertCreate
Source§fn from(value: RepositoryVulnerabilityAlertCreate) -> Self
fn from(value: RepositoryVulnerabilityAlertCreate) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertEvent
impl From<RepositoryVulnerabilityAlertCreate> for RepositoryVulnerabilityAlertEvent
Source§fn from(value: RepositoryVulnerabilityAlertCreate) -> Self
fn from(value: RepositoryVulnerabilityAlertCreate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RepositoryVulnerabilityAlertCreate
impl RefUnwindSafe for RepositoryVulnerabilityAlertCreate
impl Send for RepositoryVulnerabilityAlertCreate
impl Sync for RepositoryVulnerabilityAlertCreate
impl Unpin for RepositoryVulnerabilityAlertCreate
impl UnwindSafe for RepositoryVulnerabilityAlertCreate
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