pub struct ReposUpdateWebhookRequest {
pub config: Option<Box<WebhookConfig>>,
pub events: Option<Vec<String>>,
pub add_events: Option<Vec<String>>,
pub remove_events: Option<Vec<String>>,
pub active: Option<bool>,
}
Fields§
§config: Option<Box<WebhookConfig>>
§events: Option<Vec<String>>
Determines what events the hook is triggered for. This replaces the entire array of events.
add_events: Option<Vec<String>>
Determines a list of events to be added to the list of events that the Hook triggers for.
remove_events: Option<Vec<String>>
Determines a list of events to be removed from the list of events that the Hook triggers for.
active: Option<bool>
Determines if notifications are sent when the webhook is triggered. Set to true
to send notifications.
Implementations§
Source§impl ReposUpdateWebhookRequest
impl ReposUpdateWebhookRequest
pub fn new() -> ReposUpdateWebhookRequest
Trait Implementations§
Source§impl Clone for ReposUpdateWebhookRequest
impl Clone for ReposUpdateWebhookRequest
Source§fn clone(&self) -> ReposUpdateWebhookRequest
fn clone(&self) -> ReposUpdateWebhookRequest
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 ReposUpdateWebhookRequest
impl Debug for ReposUpdateWebhookRequest
Source§impl Default for ReposUpdateWebhookRequest
impl Default for ReposUpdateWebhookRequest
Source§fn default() -> ReposUpdateWebhookRequest
fn default() -> ReposUpdateWebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposUpdateWebhookRequest
impl<'de> Deserialize<'de> for ReposUpdateWebhookRequest
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 ReposUpdateWebhookRequest
Auto Trait Implementations§
impl Freeze for ReposUpdateWebhookRequest
impl RefUnwindSafe for ReposUpdateWebhookRequest
impl Send for ReposUpdateWebhookRequest
impl Sync for ReposUpdateWebhookRequest
impl Unpin for ReposUpdateWebhookRequest
impl UnwindSafe for ReposUpdateWebhookRequest
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