#[non_exhaustive]pub struct InputVariable {
pub name: String,
pub type_constraint: Option<String>,
pub default: Option<Value>,
pub sensitive: bool,
pub description: Option<String>,
}Expand description
One input variable of a Terraform module, as its variable block declares it.
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.name: StringIts name (the block’s label).
type_constraint: Option<String>Its type constraint as written (string, list(string), object({ name = string })),
when it has one.
default: Option<Value>Its default value, as JSON; none when the module needs it given.
sensitive: boolWhether Terraform keeps it out of its output (sensitive = true): give it as a secret.
description: Option<String>Its description, when it has one.
Implementations§
Trait Implementations§
Source§impl Clone for InputVariable
impl Clone for InputVariable
Source§fn clone(&self) -> InputVariable
fn clone(&self) -> InputVariable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputVariable
impl Debug for InputVariable
Source§impl<'de> Deserialize<'de> for InputVariable
impl<'de> Deserialize<'de> for InputVariable
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputVariable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputVariable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for InputVariable
impl JsonSchema for InputVariable
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for InputVariable
impl PartialEq for InputVariable
Source§impl Serialize for InputVariable
impl Serialize for InputVariable
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InputVariable
Auto Trait Implementations§
impl Forget for InputVariable
impl Freeze for InputVariablewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for InputVariable
impl RefUnwindSafe for InputVariable
impl Send for InputVariable
impl Sync for InputVariable
impl Unpin for InputVariable
impl UnsafeUnpin for InputVariablewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for InputVariable
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