pub struct Deployments { /* private fields */ }Expand description
Interface for repository deployments
Implementations§
Source§impl Deployments
impl Deployments
Sourcepub fn new<O, R>(github: Github, owner: O, repo: R) -> Deployments
pub fn new<O, R>(github: Github, owner: O, repo: R) -> Deployments
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
pub fn statuses(&self, id: u64) -> DeploymentStatuses
get a reference to the statuses api for a give deployment
Auto Trait Implementations§
impl Freeze for Deployments
impl !RefUnwindSafe for Deployments
impl Send for Deployments
impl Sync for Deployments
impl Unpin for Deployments
impl !UnwindSafe for Deployments
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more