pub struct OutputCommand { /* private fields */ }Expand description
Command for reading Terraform output values.
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::output::{OutputCommand, OutputResult};
let tf = Terraform::builder().working_dir("/tmp/infra").build()?;
// Get all outputs as JSON
let result = OutputCommand::new().json().execute(&tf).await?;
// Get a single raw output value
let result = OutputCommand::new()
.name("public_ip")
.raw()
.execute(&tf)
.await?;Implementations§
Source§impl OutputCommand
impl OutputCommand
Trait Implementations§
Source§impl Clone for OutputCommand
impl Clone for OutputCommand
Source§fn clone(&self) -> OutputCommand
fn clone(&self) -> OutputCommand
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 OutputCommand
impl Debug for OutputCommand
Source§impl Default for OutputCommand
impl Default for OutputCommand
Source§fn default() -> OutputCommand
fn default() -> OutputCommand
Returns the “default value” for a type. Read more
Source§impl TerraformCommand for OutputCommand
impl TerraformCommand for OutputCommand
Source§type Output = OutputResult
type Output = OutputResult
The output type produced by this command.
Source§async fn execute(&self, tf: &Terraform) -> Result<OutputResult>
async fn execute(&self, tf: &Terraform) -> Result<OutputResult>
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 OutputCommand
impl RefUnwindSafe for OutputCommand
impl Send for OutputCommand
impl Sync for OutputCommand
impl Unpin for OutputCommand
impl UnsafeUnpin for OutputCommand
impl UnwindSafe for OutputCommand
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