Enum oci_client::manifest::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<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 Display for OciManifest
impl Display for OciManifest
source§impl From<OciImageIndex> for OciManifest
impl From<OciImageIndex> for OciManifest
source§fn from(m: OciImageIndex) -> Self
fn from(m: OciImageIndex) -> Self
Converts to this type from the input type.
source§impl From<OciImageManifest> for OciManifest
impl From<OciImageManifest> for OciManifest
source§fn from(m: OciImageManifest) -> Self
fn from(m: OciImageManifest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OciManifest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)