pub struct ShowCommand { /* private fields */ }Expand description
Command for inspecting current state or a saved plan.
With -json, returns structured data about the current state or a
saved plan file.
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::show::{ShowCommand, ShowResult};
let tf = Terraform::builder().working_dir("/tmp/infra").build()?;
// Show current state
let result = ShowCommand::new().execute(&tf).await?;
// Show a saved plan
let result = ShowCommand::new()
.plan_file("tfplan")
.execute(&tf)
.await?;Implementations§
Source§impl ShowCommand
impl ShowCommand
Trait Implementations§
Source§impl Clone for ShowCommand
impl Clone for ShowCommand
Source§fn clone(&self) -> ShowCommand
fn clone(&self) -> ShowCommand
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 ShowCommand
impl Debug for ShowCommand
Source§impl Default for ShowCommand
impl Default for ShowCommand
Source§fn default() -> ShowCommand
fn default() -> ShowCommand
Returns the “default value” for a type. Read more
Source§impl TerraformCommand for ShowCommand
impl TerraformCommand for ShowCommand
Source§type Output = ShowResult
type Output = ShowResult
The output type produced by this command.
Source§async fn execute(&self, tf: &Terraform) -> Result<ShowResult>
async fn execute(&self, tf: &Terraform) -> Result<ShowResult>
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 ShowCommand
impl RefUnwindSafe for ShowCommand
impl Send for ShowCommand
impl Sync for ShowCommand
impl Unpin for ShowCommand
impl UnsafeUnpin for ShowCommand
impl UnwindSafe for ShowCommand
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