pub struct ReposCreateWebhookRequest {
pub name: Option<String>,
pub config: Option<Box<ReposCreateWebhookRequestConfig>>,
pub events: Option<Vec<String>>,
pub active: Option<bool>,
}
Fields§
§name: Option<String>
Use web
to create a webhook. Default: web
. This parameter only accepts the value web
.
config: Option<Box<ReposCreateWebhookRequestConfig>>
§events: Option<Vec<String>>
Determines what events the hook is triggered for.
active: Option<bool>
Determines if notifications are sent when the webhook is triggered. Set to true
to send notifications.
Implementations§
Source§impl ReposCreateWebhookRequest
impl ReposCreateWebhookRequest
pub fn new() -> ReposCreateWebhookRequest
Trait Implementations§
Source§impl Clone for ReposCreateWebhookRequest
impl Clone for ReposCreateWebhookRequest
Source§fn clone(&self) -> ReposCreateWebhookRequest
fn clone(&self) -> ReposCreateWebhookRequest
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 ReposCreateWebhookRequest
impl Debug for ReposCreateWebhookRequest
Source§impl Default for ReposCreateWebhookRequest
impl Default for ReposCreateWebhookRequest
Source§fn default() -> ReposCreateWebhookRequest
fn default() -> ReposCreateWebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateWebhookRequest
impl<'de> Deserialize<'de> for ReposCreateWebhookRequest
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
impl StructuralPartialEq for ReposCreateWebhookRequest
Auto Trait Implementations§
impl Freeze for ReposCreateWebhookRequest
impl RefUnwindSafe for ReposCreateWebhookRequest
impl Send for ReposCreateWebhookRequest
impl Sync for ReposCreateWebhookRequest
impl Unpin for ReposCreateWebhookRequest
impl UnwindSafe for ReposCreateWebhookRequest
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