pub struct RepositoryCopierConfig {
    pub source_url: String,
    pub destination_url: String,
    pub distributions: Vec<String>,
    pub distribution_paths: Vec<String>,
    pub only_components: Option<Vec<String>>,
    pub binary_packages_copy: Option<bool>,
    pub binary_packages_only_architectures: Option<Vec<String>>,
    pub installer_binary_packages_copy: Option<bool>,
    pub installer_binary_packages_only_architectures: Option<Vec<String>>,
    pub sources_copy: Option<bool>,
}
Expand description

A configuration for initializing a RepositoryCopier.

Fields

source_url: String

The URL or path of the source repository to copy from.

destination_url: String

The URL or path of the destination repository to copy from.

distributions: Vec<String>

Names of distributions to copy.

distribution_paths: Vec<String>

Repository root relative paths of distributions to copy.

only_components: Option<Vec<String>>

Filter of components to copy.

If not defined, all components will be copied.

binary_packages_copy: Option<bool>

Whether to copy binary packages.

binary_packages_only_architectures: Option<Vec<String>>

Filter of architectures of binary packages to copy.

If not defined, all architectures will be copied if binary packages are being copied.

installer_binary_packages_copy: Option<bool>

Whether to copy installer binary packages.

installer_binary_packages_only_architectures: Option<Vec<String>>

Filter of architectures of installer binary packages to copy.

If not defined, all architectures will be copied if installer binary packages are being copied.

sources_copy: Option<bool>

Whether to copy source packages.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more