#[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
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.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>,
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>,
Sourcepub fn set_or_clear_zip<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_zip<T>(self, v: Option<T>) -> Self
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.
§Example
ⓘ
use google_cloud_appengine_v1::model::CloudBuildOptions;
let x = Deployment::new().set_cloud_build_options(CloudBuildOptions::default()/* use setters */);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.
§Example
ⓘ
use google_cloud_appengine_v1::model::CloudBuildOptions;
let x = Deployment::new().set_or_clear_cloud_build_options(Some(CloudBuildOptions::default()/* use setters */));
let x = Deployment::new().set_or_clear_cloud_build_options(None::<CloudBuildOptions>);Trait Implementations§
Source§impl Clone for Deployment
impl Clone for Deployment
Source§fn clone(&self) -> Deployment
fn clone(&self) -> Deployment
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 Deployment
impl Debug for Deployment
Source§impl Default for Deployment
impl Default for Deployment
Source§fn default() -> Deployment
fn default() -> Deployment
Returns the “default value” for a type. Read more
Source§impl PartialEq for Deployment
impl PartialEq for Deployment
impl StructuralPartialEq for Deployment
Auto Trait Implementations§
impl Freeze for Deployment
impl RefUnwindSafe for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnwindSafe for Deployment
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