pub struct WebhookSponsorshipPendingTierChange {
pub action: Action,
pub changes: Box<WebhooksChanges8>,
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
§changes: Box<WebhooksChanges8>
§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 WebhookSponsorshipPendingTierChange
impl WebhookSponsorshipPendingTierChange
pub fn new( action: Action, changes: WebhooksChanges8, sender: SimpleUserWebhooks, sponsorship: WebhooksSponsorship, ) -> WebhookSponsorshipPendingTierChange
Trait Implementations§
Source§impl Clone for WebhookSponsorshipPendingTierChange
impl Clone for WebhookSponsorshipPendingTierChange
Source§fn clone(&self) -> WebhookSponsorshipPendingTierChange
fn clone(&self) -> WebhookSponsorshipPendingTierChange
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 WebhookSponsorshipPendingTierChange
impl Default for WebhookSponsorshipPendingTierChange
Source§fn default() -> WebhookSponsorshipPendingTierChange
fn default() -> WebhookSponsorshipPendingTierChange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookSponsorshipPendingTierChange
impl<'de> Deserialize<'de> for WebhookSponsorshipPendingTierChange
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 WebhookSponsorshipPendingTierChange
impl PartialEq for WebhookSponsorshipPendingTierChange
Source§fn eq(&self, other: &WebhookSponsorshipPendingTierChange) -> bool
fn eq(&self, other: &WebhookSponsorshipPendingTierChange) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for WebhookSponsorshipPendingTierChange
Auto Trait Implementations§
impl Freeze for WebhookSponsorshipPendingTierChange
impl RefUnwindSafe for WebhookSponsorshipPendingTierChange
impl Send for WebhookSponsorshipPendingTierChange
impl Sync for WebhookSponsorshipPendingTierChange
impl Unpin for WebhookSponsorshipPendingTierChange
impl UnwindSafe for WebhookSponsorshipPendingTierChange
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