pub struct VersionCommand { /* private fields */ }Expand description
Command for retrieving Terraform version information.
By default, requests JSON output for programmatic parsing.
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::version::VersionCommand;
let tf = Terraform::builder().build()?;
let info = VersionCommand::new().execute(&tf).await?;Implementations§
Trait Implementations§
Source§impl Clone for VersionCommand
impl Clone for VersionCommand
Source§fn clone(&self) -> VersionCommand
fn clone(&self) -> VersionCommand
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 VersionCommand
impl Debug for VersionCommand
Source§impl Default for VersionCommand
impl Default for VersionCommand
Source§impl TerraformCommand for VersionCommand
Available on crate feature json only.
impl TerraformCommand for VersionCommand
Available on crate feature
json only.Auto Trait Implementations§
impl Freeze for VersionCommand
impl RefUnwindSafe for VersionCommand
impl Send for VersionCommand
impl Sync for VersionCommand
impl Unpin for VersionCommand
impl UnsafeUnpin for VersionCommand
impl UnwindSafe for VersionCommand
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