[][src]Struct appstream::Artifact

pub struct Artifact {
    pub platform: Option<String>,
    pub kind: ArtifactKind,
    pub sizes: Vec<Size>,
    pub url: Url,
    pub checksums: Vec<Checksum>,
    pub bundles: Vec<Bundle>,
}

Defines the release artifacts, whether it's the source-code or the binary distribution. See <releases/>.

Fields

platform: Option<String>

The targeted platform of the artifact.

kind: ArtifactKind

The artifact type.

sizes: Vec<Size>

Downloaded & installed sizes.

url: Url

Download link.

checksums: Vec<Checksum>

At least one checksum of released artifact.

bundles: Vec<Bundle>

3rd-party bundles from where you can grab this release.

Trait Implementations

impl Clone for Artifact[src]

impl Debug for Artifact[src]

impl<'de> Deserialize<'de> for Artifact[src]

impl PartialEq<Artifact> for Artifact[src]

impl Serialize for Artifact[src]

impl StructuralPartialEq for Artifact[src]

impl<'_> TryFrom<&'_ Element> for Artifact[src]

type Error = ParseError

The type returned in the event of a conversion error.

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.