pub struct ValidateCommand { /* private fields */ }Expand description
Command for validating Terraform configuration.
Checks that the configuration is syntactically valid and internally consistent. Does not access any remote services (state, providers).
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::validate::ValidateCommand;
let tf = Terraform::builder().working_dir("/tmp/infra").build()?;
let result = ValidateCommand::new().execute(&tf).await?;Implementations§
Trait Implementations§
Source§impl Clone for ValidateCommand
impl Clone for ValidateCommand
Source§fn clone(&self) -> ValidateCommand
fn clone(&self) -> ValidateCommand
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 ValidateCommand
impl Debug for ValidateCommand
Source§impl Default for ValidateCommand
impl Default for ValidateCommand
Source§impl TerraformCommand for ValidateCommand
Available on crate feature json only.
impl TerraformCommand for ValidateCommand
Available on crate feature
json only.Source§type Output = ValidationResult
type Output = ValidationResult
The output type produced by this command.
Source§async fn execute(&self, tf: &Terraform) -> Result<ValidationResult>
async fn execute(&self, tf: &Terraform) -> Result<ValidationResult>
Execute this command against the given Terraform client.
Source§fn supports_input(&self) -> bool
fn supports_input(&self) -> bool
Whether this command supports the
-input=false flag. Read moreAuto Trait Implementations§
impl Freeze for ValidateCommand
impl RefUnwindSafe for ValidateCommand
impl Send for ValidateCommand
impl Sync for ValidateCommand
impl Unpin for ValidateCommand
impl UnsafeUnpin for ValidateCommand
impl UnwindSafe for ValidateCommand
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