Enum rust_release_channel::ValidationError[][src]

pub enum ValidationError<'a> {
    RenameToUnknownPackage {
        old: &'a str,
        new: &'a str,
    },
    RenameToItself(&'a str),
    RenameExistingPackage(&'a str),
    ArtefactHasUnknownComponent {
        artefact: ArtefactQuery<'a>,
        component_pkg: &'a str,
    },
    ArtefactComponentHasUnknownTarget {
        artefact: ArtefactQuery<'a>,
        component: ArtefactQuery<'a>,
    },
    ArtefactHasUnknownExtension {
        artefact: ArtefactQuery<'a>,
        extension_pkg: &'a str,
    },
    ArtefactExtensionHasUnknownTarget {
        artefact: ArtefactQuery<'a>,
        extension: ArtefactQuery<'a>,
    },
    DependencyLoop(Vec<ArtefactQuery<'a>>),
    // some variants omitted
}

Possible ways in which channel metadata could be inconsistent.

See Channel::validate for more information.

Variants

The channel's renames field says package old was renamed to new, but no package named new is listed in the channel's pkg map.

Fields of RenameToUnknownPackage

The old name for a package.

The alleged new name for the package, which isn't listed in the channel metadata.

The channel's renames field says this package was renamed to the same name.

The channel's renames field says this package was renamed, but it's still listed in the channel's pkg map.

artefact claims one of its components is an artefact built from a package named component_pkg, but no such package is listed in the channel's pkg map.

Fields of ArtefactHasUnknownComponent

The artefact that claims an unknown component.

The alleged package name that is a component of artefact.

artefact claims one of its components is component, but component.target is not listed in component.pkg's target map.

Fields of ArtefactComponentHasUnknownTarget

The artefact that claims a component with an unknown target.

The alleged artefact with the unknown target.

artefact claims one of its extensions is an artefact built from a package named extension_pkg, but no such package is listed in the channel's pkg map.

Fields of ArtefactHasUnknownExtension

The artefact that claims an unknown extension.

The alleged package name that is a extension of this artefact.

artefact claims one of its extensions is extension, but extension.target is not listed in extension.pkg's target map.

Fields of ArtefactExtensionHasUnknownTarget

The artefact that claims an extension with an unknown target.

The alleged artefact with the unknown target.

A dependency loop was detected through all these artefacts.

That is, each artefact lists the next artefact as a required component, and the last artefact requires the first one.

Trait Implementations

impl<'a> Debug for ValidationError<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for ValidationError<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for ValidationError<'a>
[src]

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

This method tests for !=.

impl<'a> Eq for ValidationError<'a>
[src]

impl<'a> PartialOrd for ValidationError<'a>
[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<'a> Ord for ValidationError<'a>
[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<'a> Hash for ValidationError<'a>
[src]

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

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

impl<'a> Display for ValidationError<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Error for ValidationError<'a>
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl<'a> Send for ValidationError<'a>

impl<'a> Sync for ValidationError<'a>