pub struct Webhook {
pub kind: HookType,
pub content_type: WebhookContentType,
pub events: Vec<String>,
pub active: bool,
pub branch_filter: String,
}Expand description
Desired settings of one webhook. The delivery URL is its key.
The secret and the authorization header are never managed.
Fields§
§kind: HookTypeThe kind of hook. Forgejo cannot change it, so a change recreates the hook.
content_type: WebhookContentTypeThe body format of a delivery.
events: Vec<String>The events that trigger a delivery.
active: boolWhether Forgejo delivers events.
branch_filter: StringThe glob of branches that trigger push events.
Trait Implementations§
impl Eq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnsafeUnpin for Webhook
impl UnwindSafe for Webhook
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.