Struct rust_release_channel::Artefact[][src]

pub struct Artefact {
    pub standalone: BTreeMap<ArchiveFormat, ArchiveSource>,
    pub components: Vec<ArtefactToken>,
    pub extensions: Vec<ArtefactToken>,
}

One or more packages built for a single target.

All the relevant files are grouped together into an archive. The standalone field may reference multiple archives in different formats, but each archive should contain exactly the same files.

If this artefact is a combination of other, smaller artefacts, they are mentioned in the components field. Installing all the components should be equivalent to installing the standalone archive. The extensions field suggests other artefacts that might be useful, but are not part of this artefact.

All the fields in this structure may be empty, which can occur when this package was not built for this target for some reason.

Fields

Points to archives containing the files of this artefact.

Each archive contains exactly the same files, so you can use whichever format is most convenient.

Points to the individual artefacts that make up the standalone artefact, if any.

If you don't need some particular artefact that's included by default, you can save bandwidth by just downloading the artefacts you need.

Points to other artefacts that may be useful with this one.

In particular, this artefact may be able to use certain other artefacts built for different targets, and this field describes which ones.

Methods

impl Artefact
[src]

Create a new, empty Artefact.

let pkg = rust_release_channel::Artefact::new();

Trait Implementations

impl Serialize for Artefact
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

impl Default for Artefact
[src]

Returns the "default value" for a type. Read more

impl Debug for Artefact
[src]

Formats the value using the given formatter. Read more

impl Clone for Artefact
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Artefact
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Artefact
[src]

impl PartialOrd for Artefact
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Artefact
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Artefact
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Artefact
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Artefact

impl Sync for Artefact