pub struct BuildsResource { /* private fields */ }Expand description
Uploads, deploys, and inspects builds.
Implementations§
Source§impl BuildsResource
impl BuildsResource
Sourcepub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
pub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
Returns the build list envelope across all projects.
Sourcepub async fn list_for_project(
&self,
project: &str,
query: &[(&str, &str)],
) -> Result<JsonObject>
pub async fn list_for_project( &self, project: &str, query: &[(&str, &str)], ) -> Result<JsonObject>
Returns the build list envelope for one project.
Sourcepub async fn get(&self, project: &str, build_id: &str) -> Result<JsonObject>
pub async fn get(&self, project: &str, build_id: &str) -> Result<JsonObject>
Returns a single build.
Sourcepub async fn deployed(&self, project: &str) -> Result<JsonObject>
pub async fn deployed(&self, project: &str) -> Result<JsonObject>
Returns the project’s deployed build.
Sourcepub async fn live(&self, project: &str) -> Result<JsonObject>
pub async fn live(&self, project: &str) -> Result<JsonObject>
Returns the project’s live build.
Sourcepub async fn upload(
&self,
project: &str,
upload: BuildUpload,
) -> Result<JsonObject>
pub async fn upload( &self, project: &str, upload: BuildUpload, ) -> Result<JsonObject>
Uploads a build archive as multipart form data.
Auto Trait Implementations§
impl !RefUnwindSafe for BuildsResource
impl !UnwindSafe for BuildsResource
impl Freeze for BuildsResource
impl Send for BuildsResource
impl Sync for BuildsResource
impl Unpin for BuildsResource
impl UnsafeUnpin for BuildsResource
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