#[non_exhaustive]pub struct SubmitBuildResponse {
pub build_operation: Option<Operation>,
pub base_image_uri: String,
pub base_image_warning: String,
/* private fields */
}Expand description
Response message for submitting a Build.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.build_operation: Option<Operation>Cloud Build operation to be polled via CloudBuild API.
base_image_uri: StringURI of the base builder image in Artifact Registry being used in the build. Used to opt into automatic base image updates.
base_image_warning: StringWarning message for the base image.
Implementations§
Source§impl SubmitBuildResponse
impl SubmitBuildResponse
pub fn new() -> Self
Sourcepub fn set_build_operation<T>(self, v: T) -> Self
pub fn set_build_operation<T>(self, v: T) -> Self
Sets the value of build_operation.
§Example
ⓘ
use longrunning::model::Operation;
let x = SubmitBuildResponse::new().set_build_operation(Operation::default()/* use setters */);Sourcepub fn set_or_clear_build_operation<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_build_operation<T>(self, v: Option<T>) -> Self
Sets or clears the value of build_operation.
§Example
ⓘ
use longrunning::model::Operation;
let x = SubmitBuildResponse::new().set_or_clear_build_operation(Some(Operation::default()/* use setters */));
let x = SubmitBuildResponse::new().set_or_clear_build_operation(None::<Operation>);Sourcepub fn set_base_image_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_base_image_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of base_image_uri.
§Example
ⓘ
let x = SubmitBuildResponse::new().set_base_image_uri("example");Sourcepub fn set_base_image_warning<T: Into<String>>(self, v: T) -> Self
pub fn set_base_image_warning<T: Into<String>>(self, v: T) -> Self
Sets the value of base_image_warning.
§Example
ⓘ
let x = SubmitBuildResponse::new().set_base_image_warning("example");Trait Implementations§
Source§impl Clone for SubmitBuildResponse
impl Clone for SubmitBuildResponse
Source§fn clone(&self) -> SubmitBuildResponse
fn clone(&self) -> SubmitBuildResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubmitBuildResponse
impl Debug for SubmitBuildResponse
Source§impl Default for SubmitBuildResponse
impl Default for SubmitBuildResponse
Source§fn default() -> SubmitBuildResponse
fn default() -> SubmitBuildResponse
Returns the “default value” for a type. Read more
Source§impl Message for SubmitBuildResponse
impl Message for SubmitBuildResponse
Source§impl PartialEq for SubmitBuildResponse
impl PartialEq for SubmitBuildResponse
impl StructuralPartialEq for SubmitBuildResponse
Auto Trait Implementations§
impl Freeze for SubmitBuildResponse
impl RefUnwindSafe for SubmitBuildResponse
impl Send for SubmitBuildResponse
impl Sync for SubmitBuildResponse
impl Unpin for SubmitBuildResponse
impl UnwindSafe for SubmitBuildResponse
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