pub struct ImportResult {
pub output: CommandOutput,
pub source: String,
pub repository: Option<String>,
pub image_id: Option<String>,
}
Expand description
Result from the import command
Fields§
§output: CommandOutput
Raw command output
source: String
Source that was imported
repository: Option<String>
Repository name (if specified)
image_id: Option<String>
Imported image ID
Implementations§
Source§impl ImportResult
impl ImportResult
Sourcepub fn repository(&self) -> Option<&str>
pub fn repository(&self) -> Option<&str>
Get the repository name
Sourcepub fn output(&self) -> &CommandOutput
pub fn output(&self) -> &CommandOutput
Get the raw command output
Sourcepub fn has_repository(&self) -> bool
pub fn has_repository(&self) -> bool
Check if a repository name was specified
Sourcepub fn imported_from_stdin(&self) -> bool
pub fn imported_from_stdin(&self) -> bool
Check if import was from stdin
Sourcepub fn imported_from_url(&self) -> bool
pub fn imported_from_url(&self) -> bool
Check if import was from URL
Sourcepub fn imported_from_file(&self) -> bool
pub fn imported_from_file(&self) -> bool
Check if import was from file
Trait Implementations§
Source§impl Clone for ImportResult
impl Clone for ImportResult
Source§fn clone(&self) -> ImportResult
fn clone(&self) -> ImportResult
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 ImportResult
impl RefUnwindSafe for ImportResult
impl Send for ImportResult
impl Sync for ImportResult
impl Unpin for ImportResult
impl UnwindSafe for ImportResult
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