Skip to main content

Crate cloud_terrastodon_hcl_types

Crate cloud_terrastodon_hcl_types 

Source

Modules§

de
Deserialize HCL data to a Rust data structure.
edit
hcl-edit
error
The Error and Result types used by this crate.
eval
Evaluate HCL templates and expressions.
expr
Types to represent the HCL expression sub-language.
format
Format data structures as HCL.
ser
Serialize a Rust data structure into HCL data.
structure
Types to represent the HCL structural sub-language.
template
Types to represent the HCL template sub-language.
value
The Value enum, a loosely typed way of representing any valid HCL value.

Macros§

attribute
Construct an hcl::Attribute from a key and a value expression.
block
Construct an hcl::Block from a block identifier, optional block labels and a block body.
body
Construct an hcl::Body from HCL blocks and attributes.
expression
Construct an hcl::Expression from an HCL attribute value expression literal.
structure
Construct an hcl::Structure which may be either an HCL attribute or block.
value
Construct an hcl::Value from an HCL attribute value value literal.

Structs§

Attribute
Represents an HCL attribute which consists of an attribute key and a value expression.
BinaryOp
An operation that applies an operator to two expressions.
Block
Represents an HCL block which consists of a block identifier, zero or more block labels and a block body.
BlockBuilder
BlockBuilder builds an HCL Block.
Body
Represents an HCL config file body.
BodyBuilder
BodyBuilder builds a HCL Body.
CodeReference
Conditional
The conditional operator allows selecting from one of two expressions based on the outcome of a boolean expression.
ForExpr
A for expression is a construct for constructing a collection by projecting the items from another collection.
FreshTFWorkDir
FuncCall
Represents a function call expression with zero or more arguments.
FuncCallBuilder
A builder for function calls.
GeneratedConfigOutTFWorkDir
HclImportBlock
Heredoc
A heredoc template expression is introduced by a << sequence and defines a template via a multi-line sequence terminated by a user-chosen delimiter.
Identifier
Represents an HCL identifier.
InitializedTFWorkDir
InternalString
An opaque string storage which inlines small strings on the stack if the perf feature is enabled.
LocationWithinFile
Number
Represents an HCL number.
OtherDataBlockKind
OtherResourceBlockKind
ProcessedTFWorkDir
ProviderAvailability
ProviderHostname
ProviderNamespace
ProviderSource
https://developer.hashicorp.com/terraform/language/providers/requirements#source-addresses
ProviderVersionConstraint
ProviderVersionObject
SemVer
Template
The main type to represent the HCL template sub-languange.
TerraformAzureRMBackendBlock
TerraformBlock
TerraformPlan
TerraformPlanPlannedValues
TerraformPlanPlannedValuesResource
TerraformPlanPlannedValuesRootModule
TerraformPlanResourceChange
TerraformPlanResourceChangeChange
TerraformProviderInfo
TerraformRequiredProvidersBlock
https://developer.hashicorp.com/terraform/language/providers/requirements#version-constraints
Traversal
Traverse an expression to access attributes, object keys or element indices.
UnaryOp
An operation that applies an operator to one expression.
UsersLookupBody
ValidatedTFWorkDir
Variable
A type representing a variable in an HCL expression.

Enums§

AzureAdDataBlockKind
AzureAdResourceBlockKind
AzureDevOpsDataBlockKind
AzureDevOpsResourceBlockKind
AzureRmDataBlockKind
Azure Resource Manager data block kind
AzureRmResourceBlockKind
BinaryOperator
An operator that can be applied to two expressions.
BlockLabel
Represents an HCL block label.
DataBlockReference
DataBlockResourceKind
Error
The error type used by this crate.
Expression
A type representing the expression sub-language. It is used in HCL attributes to specify values and in HCL templates.
HclBlock
HclBlockKind
HclDataBlock
HclProviderBlock
HclProviderReference
HclResourceBlock
HeredocStripMode
The strip behaviour for the template contained in the heredoc.
ObjectKey
Represents an object key.
Operation
Operations apply a particular operator to either one or two expression terms.
ProviderKind
ProviderVersionConstraintClause
https://developer.hashicorp.com/terraform/language/expressions/version-constraints#operators
ResourceBlockReference
ResourceBlockResourceKind
Structure
Represents an HCL structure.
TFWorkDirInitializationState
TFWorkDirKind
TFWorkDirValidationState
TemplateExpr
A template expression embeds a program written in the template sub-language as an expression.
TerraformBackendBlock
TerraformChangeAction
https://developer.hashicorp.com/terraform/internals/json-format#change-representation
TerraformPlanResourceMode
TraversalOperator
The expression traversal operators that are supported by HCL.
UnaryOperator
An operator that can be applied to an expression.
Value
Represents any valid HCL value.

Traits§

AsHclString
IntoHclBlocks
Sanitizable
TFWorkDir
TryAsHclBlocks

Functions§

from_body
Interpret a hcl::Body as an instance of type T.
from_reader
Deserialize an instance of type T from an IO stream of HCL.
from_slice
Deserialize an instance of type T from a byte slice.
from_str
Deserialize an instance of type T from a string of HCL text.
from_value
Convert a hcl::Value into a type T that implements serde::Deserialize.
parse
Parse a hcl::Body from a &str.
to_expression
Convert a T into hcl::Expression which is an enum that can represent any valid HCL attribute value expression.
to_string
Serialize the given value as an HCL string.
to_value
Convert a T into hcl::Value which is an enum that can represent any valid HCL value.
to_vec
Serialize the given value as an HCL byte vector.
to_writer
Serialize the given value as HCL into the IO stream.

Type Aliases§

Map
The map type used for HCL objects.
Object
The object type used in the expression sub-language.
Result
The result type used by this crate.