pub struct CreateHookOption {
pub kind: HookType,
pub config: BTreeMap<String, String>,
pub events: Vec<String>,
pub active: bool,
pub branch_filter: String,
}Expand description
CreateHookOption, with every property the spec lists but the
authorization header.
Fields§
§kind: HookTypeThe kind of hook.
config: BTreeMap<String, String>The delivery URL and the content type.
events: Vec<String>The events that trigger a delivery.
active: boolWhether Forgejo delivers events.
branch_filter: StringThe glob of branches that trigger push events.
Implementations§
Trait Implementations§
Source§impl Clone for CreateHookOption
impl Clone for CreateHookOption
Source§fn clone(&self) -> CreateHookOption
fn clone(&self) -> CreateHookOption
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 CreateHookOption
impl Debug for CreateHookOption
impl Eq for CreateHookOption
Source§impl<'ʄ> Facet<'ʄ> for CreateHookOption
impl<'ʄ> Facet<'ʄ> for CreateHookOption
Source§impl PartialEq for CreateHookOption
impl PartialEq for CreateHookOption
impl StructuralPartialEq for CreateHookOption
Auto Trait Implementations§
impl Freeze for CreateHookOption
impl RefUnwindSafe for CreateHookOption
impl Send for CreateHookOption
impl Sync for CreateHookOption
impl Unpin for CreateHookOption
impl UnsafeUnpin for CreateHookOption
impl UnwindSafe for CreateHookOption
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.