pub struct ImageInfo {
pub node: Option<String>,
pub name: String,
pub digest: String,
pub size: i64,
pub created_at: Option<Timestamp>,
}Expand description
Information about a container image.
Fields§
§node: Option<String>Node that reported this image.
name: StringFull image name (repository:tag or repository@digest).
digest: StringImage digest (sha256:…).
size: i64Image size in bytes.
created_at: Option<Timestamp>When the image was created.
Implementations§
Source§impl ImageInfo
impl ImageInfo
Sourcepub fn size_human(&self) -> String
pub fn size_human(&self) -> String
Get image size in a human-readable format.
Sourcepub fn is_digest_reference(&self) -> bool
pub fn is_digest_reference(&self) -> bool
Check if this is a digest-based reference (no tag).
Sourcepub fn repository(&self) -> &str
pub fn repository(&self) -> &str
Extract the repository name (without tag or digest).
Trait Implementations§
Source§impl From<ImageListResponse> for ImageInfo
impl From<ImageListResponse> for ImageInfo
Source§fn from(proto: ProtoImageListResponse) -> Self
fn from(proto: ProtoImageListResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request