#[non_exhaustive]pub struct TerraformVariable {
pub input_value: Option<Value>,
/* private fields */
}Expand description
A Terraform input variable.
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.input_value: Option<Value>Optional. Input variable value.
Implementations§
Source§impl TerraformVariable
impl TerraformVariable
pub fn new() -> Self
Sourcepub fn set_input_value<T>(self, v: T) -> Self
pub fn set_input_value<T>(self, v: T) -> Self
Sets the value of input_value.
§Example
ⓘ
use wkt::Value;
let x = TerraformVariable::new().set_input_value(Value::default()/* use setters */);Sourcepub fn set_or_clear_input_value<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_input_value<T>(self, v: Option<T>) -> Self
Sets or clears the value of input_value.
§Example
ⓘ
use wkt::Value;
let x = TerraformVariable::new().set_or_clear_input_value(Some(Value::default()/* use setters */));
let x = TerraformVariable::new().set_or_clear_input_value(None::<Value>);Trait Implementations§
Source§impl Clone for TerraformVariable
impl Clone for TerraformVariable
Source§fn clone(&self) -> TerraformVariable
fn clone(&self) -> TerraformVariable
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 TerraformVariable
impl Debug for TerraformVariable
Source§impl Default for TerraformVariable
impl Default for TerraformVariable
Source§fn default() -> TerraformVariable
fn default() -> TerraformVariable
Returns the “default value” for a type. Read more
Source§impl Message for TerraformVariable
impl Message for TerraformVariable
Source§impl PartialEq for TerraformVariable
impl PartialEq for TerraformVariable
impl StructuralPartialEq for TerraformVariable
Auto Trait Implementations§
impl Freeze for TerraformVariable
impl RefUnwindSafe for TerraformVariable
impl Send for TerraformVariable
impl Sync for TerraformVariable
impl Unpin for TerraformVariable
impl UnsafeUnpin for TerraformVariable
impl UnwindSafe for TerraformVariable
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