Enum wick_oci_utils::OciManifest
source · pub enum OciManifest {
Image(OciImageManifest),
ImageIndex(OciImageIndex),
}
Expand description
An image, or image index, OCI manifest
Variants§
Implementations§
source§impl OciManifest
impl OciManifest
sourcepub fn content_type(&self) -> &str
pub fn content_type(&self) -> &str
Returns the appropriate content-type for each variant.
Trait Implementations§
source§impl Clone for OciManifest
impl Clone for OciManifest
source§fn clone(&self) -> OciManifest
fn clone(&self) -> OciManifest
Returns a copy 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 moresource§impl Debug for OciManifest
impl Debug for OciManifest
source§impl<'de> Deserialize<'de> for OciManifest
impl<'de> Deserialize<'de> for OciManifest
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<OciManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<OciManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for OciManifest
impl Display for OciManifest
source§impl From<OciImageIndex> for OciManifest
impl From<OciImageIndex> for OciManifest
source§fn from(m: OciImageIndex) -> OciManifest
fn from(m: OciImageIndex) -> OciManifest
Converts to this type from the input type.
source§impl From<OciImageManifest> for OciManifest
impl From<OciImageManifest> for OciManifest
source§fn from(m: OciImageManifest) -> OciManifest
fn from(m: OciImageManifest) -> OciManifest
Converts to this type from the input type.
source§impl Serialize for OciManifest
impl Serialize for OciManifest
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OciManifest
impl Send for OciManifest
impl Sync for OciManifest
impl Unpin for OciManifest
impl UnwindSafe for OciManifest
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