pub struct ContainerImageIdentity {
pub digest: Option<String>,
pub image: String,
pub name: String,
}Expand description
Image a running container reports.
JSON schema
{
"description": "Image a running container reports.",
"type": "object",
"required": [
"image",
"name"
],
"properties": {
"digest": {
"description": "Registry manifest digest in `sha256:<hex>` form, when the runtime\nreports one.",
"type": [
"string",
"null"
]
},
"image": {
"description": "Image reference reported by the container runtime.",
"type": "string"
},
"name": {
"description": "Container name.",
"type": "string"
}
}
}Fields§
§digest: Option<String>Registry manifest digest in sha256:<hex> form, when the runtime
reports one.
image: StringImage reference reported by the container runtime.
name: StringContainer name.
Implementations§
Source§impl ContainerImageIdentity
impl ContainerImageIdentity
pub fn builder() -> ContainerImageIdentity
Trait Implementations§
Source§impl Clone for ContainerImageIdentity
impl Clone for ContainerImageIdentity
Source§impl Debug for ContainerImageIdentity
impl Debug for ContainerImageIdentity
Source§impl<'de> Deserialize<'de> for ContainerImageIdentity
impl<'de> Deserialize<'de> for ContainerImageIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ContainerImageIdentity> for ContainerImageIdentity
impl From<&ContainerImageIdentity> for ContainerImageIdentity
Source§fn from(value: &ContainerImageIdentity) -> Self
fn from(value: &ContainerImageIdentity) -> Self
Converts to this type from the input type.
Source§impl From<ContainerImageIdentity> for ContainerImageIdentity
impl From<ContainerImageIdentity> for ContainerImageIdentity
Source§fn from(value: ContainerImageIdentity) -> Self
fn from(value: ContainerImageIdentity) -> Self
Converts to this type from the input type.
Source§impl Serialize for ContainerImageIdentity
impl Serialize for ContainerImageIdentity
Source§impl TryFrom<ContainerImageIdentity> for ContainerImageIdentity
impl TryFrom<ContainerImageIdentity> for ContainerImageIdentity
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ContainerImageIdentity) -> Result<Self, ConversionError>
fn try_from(value: ContainerImageIdentity) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ContainerImageIdentity
impl RefUnwindSafe for ContainerImageIdentity
impl Send for ContainerImageIdentity
impl Sync for ContainerImageIdentity
impl Unpin for ContainerImageIdentity
impl UnsafeUnpin for ContainerImageIdentity
impl UnwindSafe for ContainerImageIdentity
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