pub struct HistoryResult {
pub output: CommandOutput,
pub image: String,
pub layers: Vec<ImageLayer>,
}
Expand description
Result from the history command
Fields§
§output: CommandOutput
Raw command output
image: String
Image that was inspected
layers: Vec<ImageLayer>
Parsed image layers
Implementations§
Source§impl HistoryResult
impl HistoryResult
Sourcepub fn layers(&self) -> &[ImageLayer]
pub fn layers(&self) -> &[ImageLayer]
Get the image layers
Sourcepub fn output(&self) -> &CommandOutput
pub fn output(&self) -> &CommandOutput
Get the raw command output
Sourcepub fn layer_count(&self) -> usize
pub fn layer_count(&self) -> usize
Get layer count
Sourcepub fn total_size_bytes(&self) -> Option<u64>
pub fn total_size_bytes(&self) -> Option<u64>
Get total size of all layers (if parseable)
Trait Implementations§
Source§impl Clone for HistoryResult
impl Clone for HistoryResult
Source§fn clone(&self) -> HistoryResult
fn clone(&self) -> HistoryResult
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 HistoryResult
impl RefUnwindSafe for HistoryResult
impl Send for HistoryResult
impl Sync for HistoryResult
impl Unpin for HistoryResult
impl UnwindSafe for HistoryResult
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