pub struct WebhookSponsorshipPendingCancellation {
pub action: Action,
pub effective_date: Option<String>,
pub enterprise: Option<Box<EnterpriseWebhooks>>,
pub installation: Option<Box<SimpleInstallation>>,
pub organization: Option<Box<OrganizationSimpleWebhooks>>,
pub repository: Option<Box<RepositoryWebhooks>>,
pub sender: Box<SimpleUserWebhooks>,
pub sponsorship: Box<WebhooksSponsorship>,
}
Fields§
§action: Action
§effective_date: Option<String>
The pending_cancellation
and pending_tier_change
event types will include the date the cancellation or tier change will take effect.
enterprise: Option<Box<EnterpriseWebhooks>>
§installation: Option<Box<SimpleInstallation>>
§organization: Option<Box<OrganizationSimpleWebhooks>>
§repository: Option<Box<RepositoryWebhooks>>
§sender: Box<SimpleUserWebhooks>
§sponsorship: Box<WebhooksSponsorship>
Implementations§
Source§impl WebhookSponsorshipPendingCancellation
impl WebhookSponsorshipPendingCancellation
pub fn new( action: Action, sender: SimpleUserWebhooks, sponsorship: WebhooksSponsorship, ) -> WebhookSponsorshipPendingCancellation
Trait Implementations§
Source§impl Clone for WebhookSponsorshipPendingCancellation
impl Clone for WebhookSponsorshipPendingCancellation
Source§fn clone(&self) -> WebhookSponsorshipPendingCancellation
fn clone(&self) -> WebhookSponsorshipPendingCancellation
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 WebhookSponsorshipPendingCancellation
impl Default for WebhookSponsorshipPendingCancellation
Source§fn default() -> WebhookSponsorshipPendingCancellation
fn default() -> WebhookSponsorshipPendingCancellation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookSponsorshipPendingCancellation
impl<'de> Deserialize<'de> for WebhookSponsorshipPendingCancellation
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 WebhookSponsorshipPendingCancellation
impl PartialEq for WebhookSponsorshipPendingCancellation
Source§fn eq(&self, other: &WebhookSponsorshipPendingCancellation) -> bool
fn eq(&self, other: &WebhookSponsorshipPendingCancellation) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for WebhookSponsorshipPendingCancellation
Auto Trait Implementations§
impl Freeze for WebhookSponsorshipPendingCancellation
impl RefUnwindSafe for WebhookSponsorshipPendingCancellation
impl Send for WebhookSponsorshipPendingCancellation
impl Sync for WebhookSponsorshipPendingCancellation
impl Unpin for WebhookSponsorshipPendingCancellation
impl UnwindSafe for WebhookSponsorshipPendingCancellation
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