pub struct DependabotAlertCreatedAlert {Show 15 fields
pub auto_dismissed_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub dependency: DependabotAlertCreatedAlertDependency,
pub dismissed_at: (),
pub dismissed_by: (),
pub dismissed_comment: (),
pub dismissed_reason: DependabotAlertCreatedAlertDismissedReason,
pub fixed_at: (),
pub html_url: String,
pub number: i64,
pub security_advisory: DependabotAlertCreatedAlertSecurityAdvisory,
pub security_vulnerability: DependabotAlertCreatedAlertSecurityVulnerability,
pub state: DependabotAlertCreatedAlertState,
pub updated_at: DateTime<Utc>,
pub url: String,
}
Expand description
DependabotAlertCreatedAlert
JSON schema
{
"type": "object",
"required": [
"created_at",
"dependency",
"dismissed_at",
"dismissed_by",
"dismissed_comment",
"dismissed_reason",
"fixed_at",
"html_url",
"number",
"security_advisory",
"security_vulnerability",
"state",
"updated_at",
"url"
],
"properties": {
"auto_dismissed_at": {
"description": "The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"created_at": {
"description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"dependency": {
"description": "Details for the vulnerable dependency.",
"type": "object",
"required": [
"manifest_path",
"package",
"scope"
],
"properties": {
"manifest_path": {
"description": "The full path to the dependency manifest file, relative to the root of the repository.",
"type": "string"
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"scope": {
"description": "The execution scope of the vulnerable dependency.",
"type": [
"string",
"null"
],
"enum": [
"development",
"runtime",
null
]
}
},
"additionalProperties": false
},
"dismissed_at": {
"type": "null",
"format": "date-time"
},
"dismissed_by": {
"type": "null"
},
"dismissed_comment": {
"type": "null"
},
"dismissed_reason": {
"type": "null",
"enum": [
null
]
},
"fixed_at": {
"type": "null",
"format": "date-time"
},
"html_url": {
"description": "The GitHub URL of the alert resource.",
"type": "string",
"format": "uri"
},
"number": {
"description": "The security alert number.",
"type": "integer"
},
"security_advisory": {
"description": "Details for the GitHub Security Advisory.",
"type": "object",
"required": [
"cve_id",
"cvss",
"cwes",
"description",
"ghsa_id",
"identifiers",
"published_at",
"references",
"severity",
"summary",
"updated_at",
"vulnerabilities",
"withdrawn_at"
],
"properties": {
"cve_id": {
"description": "The unique CVE ID assigned to the advisory.",
"type": [
"string",
"null"
]
},
"cvss": {
"$ref": "#/definitions/security-advisory-cvss"
},
"cwes": {
"description": "Details for the advisory pertaining to Common Weakness Enumeration.",
"type": "array",
"items": {
"$ref": "#/definitions/security-advisory-cwes"
}
},
"description": {
"description": "A long-form Markdown-supported description of the advisory.",
"type": "string"
},
"ghsa_id": {
"description": "Details for the GitHub Security Advisory.",
"type": "string"
},
"identifiers": {
"description": "Values that identify this advisory among security information sources.",
"type": "array",
"items": {
"description": "An advisory identifier.",
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"description": "The type of advisory identifier.",
"type": "string",
"enum": [
"CVE",
"GHSA"
]
},
"value": {
"description": "The value of the advisory identifer.",
"type": "string"
}
},
"additionalProperties": false
}
},
"published_at": {
"description": "The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"references": {
"description": "Links to additional advisory information.",
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"description": "The URL of the reference.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"severity": {
"description": "The severity of the advisory.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"summary": {
"description": "A short, plain text summary of the advisory.",
"type": "string"
},
"updated_at": {
"description": "The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"vulnerabilities": {
"description": "Vulnerable version range information for the advisory.",
"type": "array",
"items": {
"description": "Details pertaining to one vulnerable version range for the advisory.",
"type": "object",
"required": [
"first_patched_version",
"package",
"severity",
"vulnerable_version_range"
],
"properties": {
"first_patched_version": {
"description": "Details pertaining to the package version that patches this vulnerability.",
"type": "object",
"required": [
"identifier"
],
"properties": {
"identifier": {
"description": "The package version that patches this vulnerability.",
"type": "string"
}
},
"additionalProperties": false
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"severity": {
"description": "The severity of the vulnerability.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"vulnerable_version_range": {
"description": "Conditions that identify vulnerable versions of this vulnerability's package.",
"type": "string"
}
},
"additionalProperties": false
}
},
"withdrawn_at": {
"description": "The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"security_vulnerability": {
"description": "Details pertaining to one vulnerable version range for the advisory.",
"type": "object",
"required": [
"first_patched_version",
"package",
"severity",
"vulnerable_version_range"
],
"properties": {
"first_patched_version": {
"description": "Details pertaining to the package version that patches this vulnerability.",
"type": "object",
"required": [
"identifier"
],
"properties": {
"identifier": {
"description": "The package version that patches this vulnerability.",
"type": "string"
}
},
"additionalProperties": false
},
"package": {
"$ref": "#/definitions/dependabot-alert-package"
},
"severity": {
"description": "The severity of the vulnerability.",
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
]
},
"vulnerable_version_range": {
"description": "Conditions that identify vulnerable versions of this vulnerability's package.",
"type": "string"
}
},
"additionalProperties": false
},
"state": {
"type": "string",
"enum": [
"open"
]
},
"updated_at": {
"description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"type": "string",
"format": "date-time"
},
"url": {
"description": "The REST API URL of the alert resource.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
Fields§
§auto_dismissed_at: Option<DateTime<Utc>>
The time that the alert was auto-dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
created_at: DateTime<Utc>
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
dependency: DependabotAlertCreatedAlertDependency
§dismissed_at: ()
§dismissed_by: ()
§dismissed_comment: ()
§dismissed_reason: DependabotAlertCreatedAlertDismissedReason
§fixed_at: ()
§html_url: String
The GitHub URL of the alert resource.
number: i64
The security alert number.
security_advisory: DependabotAlertCreatedAlertSecurityAdvisory
§security_vulnerability: DependabotAlertCreatedAlertSecurityVulnerability
§state: DependabotAlertCreatedAlertState
§updated_at: DateTime<Utc>
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
url: String
The REST API URL of the alert resource.
Implementations§
Trait Implementations§
Source§impl Clone for DependabotAlertCreatedAlert
impl Clone for DependabotAlertCreatedAlert
Source§fn clone(&self) -> DependabotAlertCreatedAlert
fn clone(&self) -> DependabotAlertCreatedAlert
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 DependabotAlertCreatedAlert
impl Debug for DependabotAlertCreatedAlert
Source§impl<'de> Deserialize<'de> for DependabotAlertCreatedAlert
impl<'de> Deserialize<'de> for DependabotAlertCreatedAlert
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<&DependabotAlertCreatedAlert> for DependabotAlertCreatedAlert
impl From<&DependabotAlertCreatedAlert> for DependabotAlertCreatedAlert
Source§fn from(value: &DependabotAlertCreatedAlert) -> Self
fn from(value: &DependabotAlertCreatedAlert) -> Self
Converts to this type from the input type.
Source§impl From<DependabotAlertCreatedAlert> for DependabotAlertCreatedAlert
impl From<DependabotAlertCreatedAlert> for DependabotAlertCreatedAlert
Source§fn from(value: DependabotAlertCreatedAlert) -> Self
fn from(value: DependabotAlertCreatedAlert) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DependabotAlertCreatedAlert
impl RefUnwindSafe for DependabotAlertCreatedAlert
impl Send for DependabotAlertCreatedAlert
impl Sync for DependabotAlertCreatedAlert
impl Unpin for DependabotAlertCreatedAlert
impl UnwindSafe for DependabotAlertCreatedAlert
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