pub struct ExportResult {
pub output: CommandOutput,
pub container: String,
pub output_file: Option<String>,
}
Expand description
Result from the export command
Fields§
§output: CommandOutput
Raw command output
container: String
Container that was exported
output_file: Option<String>
Output file path (if specified)
Implementations§
Source§impl ExportResult
impl ExportResult
Sourcepub fn output_file(&self) -> Option<&str>
pub fn output_file(&self) -> Option<&str>
Get the output file path
Sourcepub fn output(&self) -> &CommandOutput
pub fn output(&self) -> &CommandOutput
Get the raw command output
Sourcepub fn exported_to_file(&self) -> bool
pub fn exported_to_file(&self) -> bool
Check if export was written to a file
Sourcepub fn exported_to_stdout(&self) -> bool
pub fn exported_to_stdout(&self) -> bool
Check if export was written to stdout
Trait Implementations§
Source§impl Clone for ExportResult
impl Clone for ExportResult
Source§fn clone(&self) -> ExportResult
fn clone(&self) -> ExportResult
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 moreAuto Trait Implementations§
impl Freeze for ExportResult
impl RefUnwindSafe for ExportResult
impl Send for ExportResult
impl Sync for ExportResult
impl Unpin for ExportResult
impl UnwindSafe for ExportResult
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