Struct hubcaps::hooks::Hooks
[−]
[src]
pub struct Hooks<'a> { /* fields omitted */ }
Interface for mangaing repository hooks
Methods
impl<'a> Hooks<'a>
[src]
fn new<O, R>(github: &'a Github, owner: O, repo: R) -> Hooks<'a> where
O: Into<String>,
R: Into<String>,
O: Into<String>,
R: Into<String>,
Create a new deployments instance
fn list(&self) -> Result<Vec<Hook>>
lists hook associated with a repoistory
fn create(&self, options: &HookCreateOptions) -> Result<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
fn edit(&self, id: u64, options: &HookEditOptions) -> Result<Hook>
edits an existing repository hook
fn delete(&self, id: u64) -> Result<()>
deletes a repoistory hook by id