Struct hubcaps::hooks::Hooks
[−]
[src]
pub struct Hooks<C> where
C: Clone + Connect, { /* fields omitted */ }
Interface for managing repository hooks
Methods
impl<C: Clone + Connect> Hooks<C>
[src]
fn list(&self) -> Future<Vec<Hook>>
[src]
lists hook associated with a repository
fn create(&self, options: &HookCreateOptions) -> Future<Hook>
[src]
creates a new repository hook Repository service hooks (like email or Campfire) can have at most one configured at a time. Creating hooks for a service that already has one configured will update the existing hook. see github docs for more information
fn edit(&self, id: u64, options: &HookEditOptions) -> Future<Hook>
[src]
edits an existing repository hook
fn delete(&self, id: u64) -> Future<()>
[src]
deletes a repository hook by id