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