Struct hubcaps::deployments::Deployments
[−]
[src]
pub struct Deployments<'a> { /* fields omitted */ }
Interface for repository deployements
Methods
impl<'a> Deployments<'a>
[src]
fn new<O, R>(github: &'a Github, owner: O, repo: R) -> Deployments<'a> where
O: Into<String>,
R: Into<String>,
O: Into<String>,
R: Into<String>,
Create a new deployments instance
fn list(&self, opts: &DeploymentListOptions) -> Result<Vec<Deployment>>
lists all deployments for a repository
fn create(&self, dep: &DeploymentOptions) -> Result<Deployment>
creates a new deployment for this repository
fn statuses(&self, id: u64) -> DeploymentStatuses
get a reference to the statuses api for a give deployment