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
standalone: BTreeMap<ArchiveFormat, ArchiveSource>
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.
components: Vec<ArtefactToken>
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.
extensions: Vec<ArtefactToken>
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]
impl Artefact
pub fn new() -> Artefact
[src]
pub fn new() -> Artefact
Create a new, empty Artefact.
let pkg = rust_release_channel::Artefact::new();
Trait Implementations
impl Serialize for Artefact
[src]
impl Serialize for Artefact
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Artefact
[src]
impl<'de> Deserialize<'de> for Artefact
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Default for Artefact
[src]
impl Default for Artefact
impl Debug for Artefact
[src]
impl Debug for Artefact
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Artefact
[src]
impl Clone for Artefact
fn clone(&self) -> Artefact
[src]
fn clone(&self) -> Artefact
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Artefact
[src]
impl PartialEq for Artefact
fn eq(&self, other: &Artefact) -> bool
[src]
fn eq(&self, other: &Artefact) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Artefact) -> bool
[src]
fn ne(&self, other: &Artefact) -> bool
This method tests for !=
.
impl Eq for Artefact
[src]
impl Eq for Artefact
impl PartialOrd for Artefact
[src]
impl PartialOrd for Artefact
fn partial_cmp(&self, other: &Artefact) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Artefact) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Artefact) -> bool
[src]
fn lt(&self, other: &Artefact) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Artefact) -> bool
[src]
fn le(&self, other: &Artefact) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Artefact) -> bool
[src]
fn gt(&self, other: &Artefact) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Artefact) -> bool
[src]
fn ge(&self, other: &Artefact) -> bool
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]
impl Ord for Artefact
fn cmp(&self, other: &Artefact) -> Ordering
[src]
fn cmp(&self, other: &Artefact) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Artefact
[src]
impl Hash for Artefact
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Artefact
[src]
impl Display for Artefact