#[non_exhaustive]pub struct DeploymentSource {
pub deployment: String,
pub output_name: String,
/* private fields */
}Expand description
Configuration for a value sourced from a Deployment.
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.deployment: StringRequired. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.
output_name: StringRequired. The name of the output variable in the source deployment’s latest successfully applied revision.
Implementations§
Source§impl DeploymentSource
impl DeploymentSource
pub fn new() -> Self
Sourcepub fn set_deployment<T: Into<String>>(self, v: T) -> Self
pub fn set_deployment<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_output_name<T: Into<String>>(self, v: T) -> Self
pub fn set_output_name<T: Into<String>>(self, v: T) -> Self
Sets the value of output_name.
§Example
ⓘ
let x = DeploymentSource::new().set_output_name("example");Trait Implementations§
Source§impl Clone for DeploymentSource
impl Clone for DeploymentSource
Source§fn clone(&self) -> DeploymentSource
fn clone(&self) -> DeploymentSource
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 DeploymentSource
impl Debug for DeploymentSource
Source§impl Default for DeploymentSource
impl Default for DeploymentSource
Source§fn default() -> DeploymentSource
fn default() -> DeploymentSource
Returns the “default value” for a type. Read more
Source§impl Message for DeploymentSource
impl Message for DeploymentSource
Source§impl PartialEq for DeploymentSource
impl PartialEq for DeploymentSource
impl StructuralPartialEq for DeploymentSource
Auto Trait Implementations§
impl Freeze for DeploymentSource
impl RefUnwindSafe for DeploymentSource
impl Send for DeploymentSource
impl Sync for DeploymentSource
impl Unpin for DeploymentSource
impl UnsafeUnpin for DeploymentSource
impl UnwindSafe for DeploymentSource
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