Struct rust_release_channel::ArchiveSource[][src]

pub struct ArchiveSource {
    pub url: Url,
    pub hash: String,
}

Describes where to obtain a particular archive.

Fields

A URL from where the archive may be obtained.

The expected SHA256 hash of the archive, encoded as ASCII lowercase hexadecimal digits.

If you download this archive, hash it and compare the result to this value, so you can tell whether you got the right file.

Methods

impl ArchiveSource
[src]

Create a new ArchiveSource for the given URL and hash.

url is a URL from where the archive may be obtained.

hash is the expected SHA256 hash of the archive, encoded as ASCII lowercase hexadecimal digits.

let pkg = rust_release_channel::ArchiveSource::new(
    "https://example.com/rust/archive.tar.gz".parse()?,
    "867f3496607caeb969dabcd0083d35e010591bc2a9105af4f6c34289750c8b95"
        .into(),
);

Trait Implementations

impl Debug for ArchiveSource
[src]

Formats the value using the given formatter. Read more

impl Clone for ArchiveSource
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ArchiveSource
[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 ArchiveSource
[src]

impl PartialOrd for ArchiveSource
[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 ArchiveSource
[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 ArchiveSource
[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 ArchiveSource
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations