pub struct WebhookDelete {
pub enterprise: Option<Box<EnterpriseWebhooks>>,
pub installation: Option<Box<SimpleInstallation>>,
pub organization: Option<Box<OrganizationSimpleWebhooks>>,
pub pusher_type: String,
pub ref: String,
pub ref_type: RefType,
pub repository: Box<RepositoryWebhooks>,
pub sender: Box<SimpleUserWebhooks>,
}
Fields§
§enterprise: Option<Box<EnterpriseWebhooks>>
§installation: Option<Box<SimpleInstallation>>
§organization: Option<Box<OrganizationSimpleWebhooks>>
§pusher_type: String
The pusher type for the event. Can be either user
or a deploy key.
ref: String
The git ref
resource.
ref_type: RefType
The type of Git ref object deleted in the repository.
repository: Box<RepositoryWebhooks>
§sender: Box<SimpleUserWebhooks>
Implementations§
Source§impl WebhookDelete
impl WebhookDelete
pub fn new( pusher_type: String, ref: String, ref_type: RefType, repository: RepositoryWebhooks, sender: SimpleUserWebhooks, ) -> WebhookDelete
Trait Implementations§
Source§impl Clone for WebhookDelete
impl Clone for WebhookDelete
Source§fn clone(&self) -> WebhookDelete
fn clone(&self) -> WebhookDelete
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 WebhookDelete
impl Debug for WebhookDelete
Source§impl Default for WebhookDelete
impl Default for WebhookDelete
Source§fn default() -> WebhookDelete
fn default() -> WebhookDelete
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookDelete
impl<'de> Deserialize<'de> for WebhookDelete
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 WebhookDelete
impl PartialEq for WebhookDelete
Source§impl Serialize for WebhookDelete
impl Serialize for WebhookDelete
impl StructuralPartialEq for WebhookDelete
Auto Trait Implementations§
impl Freeze for WebhookDelete
impl RefUnwindSafe for WebhookDelete
impl Send for WebhookDelete
impl Sync for WebhookDelete
impl Unpin for WebhookDelete
impl UnwindSafe for WebhookDelete
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