pub struct WebhookSecurityAdvisoryPublished {
pub action: Action,
pub enterprise: Option<Box<EnterpriseWebhooks>>,
pub installation: Option<Box<SimpleInstallation>>,
pub organization: Option<Box<OrganizationSimpleWebhooks>>,
pub repository: Option<Box<RepositoryWebhooks>>,
pub security_advisory: Box<WebhooksSecurityAdvisory>,
pub sender: Option<Box<SimpleUserWebhooks>>,
}
Fields§
§action: Action
§enterprise: Option<Box<EnterpriseWebhooks>>
§installation: Option<Box<SimpleInstallation>>
§organization: Option<Box<OrganizationSimpleWebhooks>>
§repository: Option<Box<RepositoryWebhooks>>
§security_advisory: Box<WebhooksSecurityAdvisory>
§sender: Option<Box<SimpleUserWebhooks>>
Implementations§
Source§impl WebhookSecurityAdvisoryPublished
impl WebhookSecurityAdvisoryPublished
pub fn new( action: Action, security_advisory: WebhooksSecurityAdvisory, ) -> WebhookSecurityAdvisoryPublished
Trait Implementations§
Source§impl Clone for WebhookSecurityAdvisoryPublished
impl Clone for WebhookSecurityAdvisoryPublished
Source§fn clone(&self) -> WebhookSecurityAdvisoryPublished
fn clone(&self) -> WebhookSecurityAdvisoryPublished
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 Default for WebhookSecurityAdvisoryPublished
impl Default for WebhookSecurityAdvisoryPublished
Source§fn default() -> WebhookSecurityAdvisoryPublished
fn default() -> WebhookSecurityAdvisoryPublished
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookSecurityAdvisoryPublished
impl<'de> Deserialize<'de> for WebhookSecurityAdvisoryPublished
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 PartialEq for WebhookSecurityAdvisoryPublished
impl PartialEq for WebhookSecurityAdvisoryPublished
Source§fn eq(&self, other: &WebhookSecurityAdvisoryPublished) -> bool
fn eq(&self, other: &WebhookSecurityAdvisoryPublished) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for WebhookSecurityAdvisoryPublished
Auto Trait Implementations§
impl Freeze for WebhookSecurityAdvisoryPublished
impl RefUnwindSafe for WebhookSecurityAdvisoryPublished
impl Send for WebhookSecurityAdvisoryPublished
impl Sync for WebhookSecurityAdvisoryPublished
impl Unpin for WebhookSecurityAdvisoryPublished
impl UnwindSafe for WebhookSecurityAdvisoryPublished
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