pub struct WebhookCreate {
pub description: Option<String>,
pub enterprise: Option<Box<EnterpriseWebhooks>>,
pub installation: Option<Box<SimpleInstallation>>,
pub master_branch: String,
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§
§description: Option<String>
The repository’s current description.
enterprise: Option<Box<EnterpriseWebhooks>>
§installation: Option<Box<SimpleInstallation>>
§master_branch: String
The name of the repository’s default branch (usually main
).
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 created in the repository.
repository: Box<RepositoryWebhooks>
§sender: Box<SimpleUserWebhooks>
Implementations§
Source§impl WebhookCreate
impl WebhookCreate
pub fn new( description: Option<String>, master_branch: String, pusher_type: String, ref: String, ref_type: RefType, repository: RepositoryWebhooks, sender: SimpleUserWebhooks, ) -> WebhookCreate
Trait Implementations§
Source§impl Clone for WebhookCreate
impl Clone for WebhookCreate
Source§fn clone(&self) -> WebhookCreate
fn clone(&self) -> WebhookCreate
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 WebhookCreate
impl Debug for WebhookCreate
Source§impl Default for WebhookCreate
impl Default for WebhookCreate
Source§fn default() -> WebhookCreate
fn default() -> WebhookCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookCreate
impl<'de> Deserialize<'de> for WebhookCreate
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 WebhookCreate
impl PartialEq for WebhookCreate
Source§impl Serialize for WebhookCreate
impl Serialize for WebhookCreate
impl StructuralPartialEq for WebhookCreate
Auto Trait Implementations§
impl Freeze for WebhookCreate
impl RefUnwindSafe for WebhookCreate
impl Send for WebhookCreate
impl Sync for WebhookCreate
impl Unpin for WebhookCreate
impl UnwindSafe for WebhookCreate
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