pub struct WebhookBody {
pub name: String,
pub config: WebhookConfigBody,
pub events: Vec<String>,
pub active: bool,
}Expand description
The body that creates a webhook.
Fields§
§name: StringThe hook type, always web.
config: WebhookConfigBodyThe delivery settings.
events: Vec<String>The events that trigger a delivery.
active: boolWhether GitHub delivers events.
Trait Implementations§
Source§impl Clone for WebhookBody
impl Clone for WebhookBody
Source§fn clone(&self) -> WebhookBody
fn clone(&self) -> WebhookBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookBody
impl Debug for WebhookBody
impl Eq for WebhookBody
Source§impl<'ʄ> Facet<'ʄ> for WebhookBody
impl<'ʄ> Facet<'ʄ> for WebhookBody
Source§impl PartialEq for WebhookBody
impl PartialEq for WebhookBody
impl StructuralPartialEq for WebhookBody
Auto Trait Implementations§
impl Freeze for WebhookBody
impl RefUnwindSafe for WebhookBody
impl Send for WebhookBody
impl Sync for WebhookBody
impl Unpin for WebhookBody
impl UnsafeUnpin for WebhookBody
impl UnwindSafe for WebhookBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.