#[non_exhaustive]pub struct Deployment {
pub files: HashMap<String, FileInfo>,
pub container: Option<ContainerInfo>,
pub zip: Option<ZipInfo>,
pub cloud_build_options: Option<CloudBuildOptions>,
/* private fields */
}
Expand description
Code and application artifacts used to deploy a version to App Engine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.files: HashMap<String, FileInfo>
Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.
container: Option<ContainerInfo>
The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
zip: Option<ZipInfo>
The zip file for this deployment, if this is a zip deployment.
cloud_build_options: Option<CloudBuildOptions>
Options for any Google Cloud Build builds created as a part of this deployment.
These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.
Implementations§
Source§impl Deployment
impl Deployment
pub fn new() -> Self
Sourcepub fn set_container<T>(self, v: T) -> Selfwhere
T: Into<ContainerInfo>,
pub fn set_container<T>(self, v: T) -> Selfwhere
T: Into<ContainerInfo>,
Sets the value of container.
Sourcepub fn set_or_clear_container<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerInfo>,
pub fn set_or_clear_container<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerInfo>,
Sets or clears the value of container.
Sourcepub fn set_or_clear_zip<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_zip<T>(self, v: Option<T>) -> Self
Sets or clears the value of zip.
Sourcepub fn set_cloud_build_options<T>(self, v: T) -> Selfwhere
T: Into<CloudBuildOptions>,
pub fn set_cloud_build_options<T>(self, v: T) -> Selfwhere
T: Into<CloudBuildOptions>,
Sets the value of cloud_build_options.
Sourcepub fn set_or_clear_cloud_build_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudBuildOptions>,
pub fn set_or_clear_cloud_build_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudBuildOptions>,
Sets or clears the value of cloud_build_options.
Trait Implementations§
Source§impl Clone for Deployment
impl Clone for Deployment
Source§fn clone(&self) -> Deployment
fn clone(&self) -> Deployment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more