pub struct RepoHookEntry {
pub script: String,
pub order: HookOrder,
}Expand description
A single per-repo hook with its script and ordering relationship to the global hook.
Fields§
§script: StringThe hook script. Supports the same Mustache-style placeholders as
global hooks: {{owner}}, {{repo}}, {{issue}}, {{branch}},
{{worktree_path}}.
order: HookOrderHow this hook relates to the global hook. Defaults to HookOrder::Before.
Trait Implementations§
Source§impl Clone for RepoHookEntry
impl Clone for RepoHookEntry
Source§fn clone(&self) -> RepoHookEntry
fn clone(&self) -> RepoHookEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepoHookEntry
impl RefUnwindSafe for RepoHookEntry
impl Send for RepoHookEntry
impl Sync for RepoHookEntry
impl Unpin for RepoHookEntry
impl UnsafeUnpin for RepoHookEntry
impl UnwindSafe for RepoHookEntry
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