Annotations

Struct Annotations 

Source
pub struct Annotations {
    pub created: Option<DateTime>,
    pub authors: Option<Text>,
    pub url: Option<Url>,
    pub description: Option<Text>,
    pub documentation: Option<Url>,
    pub version: Option<Version>,
    pub licenses: Option<SpdxLicenseExpression>,
    pub source: Option<Url>,
    pub vendor: Option<Text>,
    pub title: Option<Text>,
}
Expand description

metadata for an image based on oci image spec annotations

Fields§

§created: Option<DateTime>

the date and time on which the image was built (date-time string as defined by RFC 3339).

§authors: Option<Text>

contact details of the people or organization responsible for the image (freeform string)

§url: Option<Url>

URL to find more information on the image

§description: Option<Text>

Human-readable description of the software packaged in the image

§documentation: Option<Url>

URL to get documentation on the image

§version: Option<Version>

version of the packaged software MAY match a label or tag in the source code repository MAY be Semantic versioning-compatible

§licenses: Option<SpdxLicenseExpression>

License(s) under which contained software is distributed as an SPDX License Expression.

§source: Option<Url>

URL to get source code for building the image

§vendor: Option<Text>

Name of the distributing entity, organization or individual.

§title: Option<Text>

Human-readable title of the image

Trait Implementations§

Source§

impl Debug for Annotations

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Annotations

Source§

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 Serialize for Annotations

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,