Struct hubcaps::hooks::Hooks
[−]
[src]
pub struct Hooks<'a> { /* fields omitted */ }
Interface for managing repository hooks
Methods
impl<'a> Hooks<'a>
[src]
fn list(&self) -> Result<Vec<Hook>>
[src]
lists hook associated with a repository
fn create(&self, options: &HookCreateOptions) -> Result<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) -> Result<Hook>
[src]
edits an existing repository hook
fn delete(&self, id: u64) -> Result<()>
[src]
deletes a repository hook by id