pub struct SecretScanningAlertCreated {
pub action: SecretScanningAlertCreatedAction,
pub alert: SecretScanningAlertCreatedAlert,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
}
Expand description
SecretScanningAlertCreated
JSON schema
{
"title": "secret_scanning_alert created event",
"type": "object",
"required": [
"action",
"alert",
"repository"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"alert": {
"allOf": [
{
"$ref": "#/definitions/secret-scanning-alert"
},
{
"type": "object",
"required": [
"resolution",
"resolved_at",
"resolved_by"
],
"properties": {
"resolution": {
"type": "null"
},
"resolved_at": {
"type": "null"
},
"resolved_by": {
"type": "null"
}
},
"tsAdditionalProperties": false
}
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: SecretScanningAlertCreatedAction
§alert: SecretScanningAlertCreatedAlert
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
Implementations§
Source§impl SecretScanningAlertCreated
impl SecretScanningAlertCreated
pub fn builder() -> SecretScanningAlertCreated
Trait Implementations§
Source§impl Clone for SecretScanningAlertCreated
impl Clone for SecretScanningAlertCreated
Source§fn clone(&self) -> SecretScanningAlertCreated
fn clone(&self) -> SecretScanningAlertCreated
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 SecretScanningAlertCreated
impl Debug for SecretScanningAlertCreated
Source§impl<'de> Deserialize<'de> for SecretScanningAlertCreated
impl<'de> Deserialize<'de> for SecretScanningAlertCreated
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<&SecretScanningAlertCreated> for SecretScanningAlertCreated
impl From<&SecretScanningAlertCreated> for SecretScanningAlertCreated
Source§fn from(value: &SecretScanningAlertCreated) -> Self
fn from(value: &SecretScanningAlertCreated) -> Self
Converts to this type from the input type.
Source§impl From<SecretScanningAlertCreated> for SecretScanningAlertCreated
impl From<SecretScanningAlertCreated> for SecretScanningAlertCreated
Source§fn from(value: SecretScanningAlertCreated) -> Self
fn from(value: SecretScanningAlertCreated) -> Self
Converts to this type from the input type.
Source§impl From<SecretScanningAlertCreated> for SecretScanningAlertEvent
impl From<SecretScanningAlertCreated> for SecretScanningAlertEvent
Source§fn from(value: SecretScanningAlertCreated) -> Self
fn from(value: SecretScanningAlertCreated) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecretScanningAlertCreated
impl RefUnwindSafe for SecretScanningAlertCreated
impl Send for SecretScanningAlertCreated
impl Sync for SecretScanningAlertCreated
impl Unpin for SecretScanningAlertCreated
impl UnwindSafe for SecretScanningAlertCreated
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