MCPcopy Create free account
hub / github.com/archlinux/alpm / Source

Enum Source

alpm-types/src/source.rs:16–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 stream::Stream,
15 token::any,
16};
17
18use crate::{Error, SourceUrl};
19
20/// Represents the location that a source file should be retrieved from
21///
22/// It can be either a local file (next to the PKGBUILD) or a URL.
23#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
24#[serde(tag = "type")]
25pub enum Source {
26 /// A local file source.
27 ///
28 /// The location must be a pure file name, without any path components (`/`).
29 /// Hence, the file must be located directly next to the PKGBUILD.
30 File {
31 /// The optional destination file name.
32 filename: Option<PathBuf>,
33 /// The source file name.
34 location: PathBuf,
35 },
36 /// A URL source.
37 SourceUrl {

Callers 1

parserMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected