pub struct Hook {
pub id: i64,
pub kind: Option<String>,
pub url: Option<String>,
pub content_type: Option<String>,
pub events: Option<Vec<String>>,
pub active: Option<bool>,
pub branch_filter: Option<String>,
pub authorization_header: Option<String>,
}Expand description
A repository webhook as Forgejo reports it.
The kind stays an open string, because Forgejo has hook types that the spec does not list.
Fields§
§id: i64The hook’s numeric identifier, which addresses it in later writes.
kind: Option<String>The kind of hook.
url: Option<String>The delivery URL.
content_type: Option<String>The body format of a delivery.
events: Option<Vec<String>>The events that trigger a delivery.
active: Option<bool>Whether Forgejo delivers events.
branch_filter: Option<String>The glob of branches that trigger push events.
The authorization header, in clear text.
Trait Implementations§
impl Eq for Hook
impl StructuralPartialEq for Hook
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnsafeUnpin for Hook
impl UnwindSafe for Hook
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.