pub struct SubmitBuild(/* private fields */);Expand description
The request builder for Builds::submit_build calls.
§Example
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> SubmitBuild {
// ... details omitted ...
}Implementations§
Source§impl SubmitBuild
impl SubmitBuild
Sourcepub fn with_request<V: Into<SubmitBuildRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<SubmitBuildRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<SubmitBuildResponse>
pub async fn send(self) -> Result<SubmitBuildResponse>
Sends the request.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
This is a required field for requests.
Sourcepub fn set_image_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_image_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of image_uri.
This is a required field for requests.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_worker_pool<T: Into<String>>(self, v: T) -> Self
pub fn set_worker_pool<T: Into<String>>(self, v: T) -> Self
Sets the value of worker_pool.
Sets the value of tags.
Sourcepub fn set_machine_type<T: Into<String>>(self, v: T) -> Self
pub fn set_machine_type<T: Into<String>>(self, v: T) -> Self
Sets the value of machine_type.
Sourcepub fn set_release_track<T: Into<LaunchStage>>(self, v: T) -> Self
pub fn set_release_track<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of release_track.
Sourcepub fn set_client<T: Into<String>>(self, v: T) -> Self
pub fn set_client<T: Into<String>>(self, v: T) -> Self
Sets the value of client.
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_storage_source<T: Into<Box<StorageSource>>>(self, v: T) -> Self
pub fn set_storage_source<T: Into<Box<StorageSource>>>(self, v: T) -> Self
Sets the value of source
to hold a StorageSource.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_build_type<T: Into<Option<BuildType>>>(self, v: T) -> Self
pub fn set_build_type<T: Into<Option<BuildType>>>(self, v: T) -> Self
Sets the value of build_type.
Note that all the setters affecting build_type are
mutually exclusive.
Sourcepub fn set_buildpack_build<T: Into<Box<BuildpacksBuild>>>(self, v: T) -> Self
pub fn set_buildpack_build<T: Into<Box<BuildpacksBuild>>>(self, v: T) -> Self
Sets the value of build_type
to hold a BuildpackBuild.
Note that all the setters affecting build_type are
mutually exclusive.
Sourcepub fn set_docker_build<T: Into<Box<DockerBuild>>>(self, v: T) -> Self
pub fn set_docker_build<T: Into<Box<DockerBuild>>>(self, v: T) -> Self
Sets the value of build_type
to hold a DockerBuild.
Note that all the setters affecting build_type are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SubmitBuild
impl Clone for SubmitBuild
Source§fn clone(&self) -> SubmitBuild
fn clone(&self) -> SubmitBuild
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SubmitBuild
impl !RefUnwindSafe for SubmitBuild
impl Send for SubmitBuild
impl Sync for SubmitBuild
impl Unpin for SubmitBuild
impl !UnwindSafe for SubmitBuild
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.