pub struct EditHookOption {
pub config: Option<BTreeMap<String, String>>,
pub events: Option<Vec<String>>,
pub active: Option<bool>,
pub branch_filter: Option<String>,
pub authorization_header: Option<String>,
}Expand description
The managed subset of EditHookOption.
Forgejo overwrites the events, the branch filter and the authorization header on every edit, so a complete edit sends all three. It leaves the secret alone.
Fields§
§config: Option<BTreeMap<String, String>>Configuration entries to change.
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, sent back as it is.
Implementations§
Trait Implementations§
Source§impl Clone for EditHookOption
impl Clone for EditHookOption
Source§fn clone(&self) -> EditHookOption
fn clone(&self) -> EditHookOption
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 EditHookOption
impl Debug for EditHookOption
Source§impl Default for EditHookOption
impl Default for EditHookOption
Source§fn default() -> EditHookOption
fn default() -> EditHookOption
Returns the “default value” for a type. Read more
impl Eq for EditHookOption
Source§impl<'ʄ> Facet<'ʄ> for EditHookOption
impl<'ʄ> Facet<'ʄ> for EditHookOption
Source§impl PartialEq for EditHookOption
impl PartialEq for EditHookOption
impl StructuralPartialEq for EditHookOption
Auto Trait Implementations§
impl Freeze for EditHookOption
impl RefUnwindSafe for EditHookOption
impl Send for EditHookOption
impl Sync for EditHookOption
impl Unpin for EditHookOption
impl UnsafeUnpin for EditHookOption
impl UnwindSafe for EditHookOption
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.