[][src]Enum bandsocks::ImageVersion

pub enum ImageVersion {
    Tag(Tag),
    ContentDigest(ContentDigest),
}

Either an image tag or a content digest

An ImageName includes an optional tag and an optional content digest. Only the most specific available version is used to actually download an image, though. Any ImageName can be resolved into an ImageVersion that is either a digest, a tag, or the special tag "latest".

Variants

Tag(Tag)
ContentDigest(ContentDigest)

Implementations

impl ImageVersion[src]

pub fn as_str(&self) -> &str[src]

Returns a reference to the existing string representation of an ImageVersion

pub fn parse(s: &str) -> Result<Self, ImageError>[src]

Parse a str as an ImageVersion

pub fn is_content_digest(&self) -> bool[src]

Is this version a content digest?

pub fn is_tag(&self) -> bool[src]

Is this version a tag?

Trait Implementations

impl Clone for ImageVersion[src]

impl Debug for ImageVersion[src]

impl Display for ImageVersion[src]

impl Eq for ImageVersion[src]

impl FromStr for ImageVersion[src]

type Err = ImageError

The associated error which can be returned from parsing.

impl Hash for ImageVersion[src]

impl Ord for ImageVersion[src]

impl PartialEq<ImageVersion> for ImageVersion[src]

impl PartialOrd<ImageVersion> for ImageVersion[src]

impl StructuralEq for ImageVersion[src]

impl StructuralPartialEq for ImageVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,