Skip to main content

Module image_ref_serde

Module image_ref_serde 

Source
Expand description

Serde helpers to (de)serialize an ImageReference as its OCI-spec canonical string form ([host[:port]/]name[:tag][@digest]) instead of the default struct shape {registry, repository, tag, digest}.

Use with #[serde(with = "zlayer_types::image_ref_serde")] on a field of type ImageReference. For optional fields use image_ref_serde::option.

Modules§

option

Functions§

deserialize
Errors
serialize
Errors