pub struct BuildClient { /* private fields */ }Expand description
Client for a specific Actor build.
Implementations§
Source§impl BuildClient
impl BuildClient
Sourcepub async fn get(&self) -> ApifyClientResult<Option<Build>>
pub async fn get(&self) -> ApifyClientResult<Option<Build>>
Fetches the build object, or None if it does not exist.
Sourcepub async fn abort(&self) -> ApifyClientResult<Build>
pub async fn abort(&self) -> ApifyClientResult<Build>
Aborts the build.
Sourcepub async fn delete(&self) -> ApifyClientResult<()>
pub async fn delete(&self) -> ApifyClientResult<()>
Deletes the build.
Sourcepub async fn wait_for_finish(
&self,
wait_secs: Option<i64>,
) -> ApifyClientResult<Build>
pub async fn wait_for_finish( &self, wait_secs: Option<i64>, ) -> ApifyClientResult<Build>
Waits (by client-side polling) for the build to reach a terminal state.
wait_secs controls the wait budget:
Nonepolls indefinitely until the build reaches a terminal state.Some(n)bounds the wait to roughlynseconds; if the build has not finished by then, the last fetched (still non-terminal) build is returned rather than an error. Checkstatus/is_terminal()on the result when usingSome.
Sourcepub async fn get_openapi_definition(&self) -> ApifyClientResult<Option<Value>>
pub async fn get_openapi_definition(&self) -> ApifyClientResult<Option<Value>>
Retrieves the OpenAPI definition generated for this build, if available.
Corresponds to GET /v2/actor-builds/{buildId}/openapi.json. The response is a raw
OpenAPI document (not wrapped in a data envelope), returned as JSON.
Trait Implementations§
Source§impl Clone for BuildClient
impl Clone for BuildClient
Source§fn clone(&self) -> BuildClient
fn clone(&self) -> BuildClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BuildClient
impl !UnwindSafe for BuildClient
impl Freeze for BuildClient
impl Send for BuildClient
impl Sync for BuildClient
impl Unpin for BuildClient
impl UnsafeUnpin for BuildClient
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