Struct hubcaps::deployments::Deployments
source · Expand description
Interface for repository deployments
Implementations
sourceimpl<C: Clone + Connect + 'static> Deployments<C>
impl<C: Clone + Connect + 'static> Deployments<C>
sourcepub fn new<O, R>(github: Github<C>, owner: O, repo: R) -> Deployments<C>where
O: Into<String>,
R: Into<String>,
pub fn new<O, R>(github: Github<C>, owner: O, repo: R) -> Deployments<C>where
O: Into<String>,
R: Into<String>,
Create a new deployments instance
sourcepub fn list(&self, opts: &DeploymentListOptions) -> Future<Vec<Deployment>>
pub fn list(&self, opts: &DeploymentListOptions) -> Future<Vec<Deployment>>
lists all deployments for a repository
sourcepub fn create(&self, dep: &DeploymentOptions) -> Future<Deployment>
pub fn create(&self, dep: &DeploymentOptions) -> Future<Deployment>
creates a new deployment for this repository
sourcepub fn statuses(&self, id: u64) -> DeploymentStatuses<C>
pub fn statuses(&self, id: u64) -> DeploymentStatuses<C>
get a reference to the statuses api for a give deployment
Auto Trait Implementations
impl<C> !RefUnwindSafe for Deployments<C>
impl<C> Send for Deployments<C>
impl<C> Sync for Deployments<C>
impl<C> Unpin for Deployments<C>
impl<C> !UnwindSafe for Deployments<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more