Struct hubcaps::hooks::Hooks [−][src]
Interface for managing repository hooks
Methods
impl<C: Clone + Connect> Hooks<C>
[src]
impl<C: Clone + Connect> Hooks<C>
pub fn list(&self) -> Future<Vec<Hook>>
[src]
pub fn list(&self) -> Future<Vec<Hook>>
lists hook associated with a repository
pub fn create(&self, options: &HookCreateOptions) -> Future<Hook>
[src]
pub fn create(&self, options: &HookCreateOptions) -> Future<Hook>
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
pub fn edit(&self, id: u64, options: &HookEditOptions) -> Future<Hook>
[src]
pub fn edit(&self, id: u64, options: &HookEditOptions) -> Future<Hook>
edits an existing repository hook
pub fn delete(&self, id: u64) -> Future<()>
[src]
pub fn delete(&self, id: u64) -> Future<()>
deletes a repository hook by id