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
RenameToUnknownPackage
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
old: &'a str | The old name for a package. |
new: &'a str | The alleged new name for the package, which isn't listed in the channel metadata. |
RenameToItself(&'a str)
The channel's renames
field
says this package was renamed to the same name.
RenameExistingPackage(&'a str)
The channel's renames
field
says this package was renamed,
but it's still listed in the channel's pkg
map.
ArtefactHasUnknownComponent
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
artefact: ArtefactQuery<'a> | The artefact that claims an unknown component. |
component_pkg: &'a str | The alleged package name
that is a component of |
ArtefactComponentHasUnknownTarget
artefact
claims
one of its components
is component
,
but component.target
is not listed
in component.pkg
's target
map.
Fields of ArtefactComponentHasUnknownTarget
artefact: ArtefactQuery<'a> | The artefact that claims a component with an unknown target. |
component: ArtefactQuery<'a> | The alleged artefact with the unknown target. |
ArtefactHasUnknownExtension
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
artefact: ArtefactQuery<'a> | The artefact that claims an unknown extension. |
extension_pkg: &'a str | The alleged package name that is a extension of this artefact. |
ArtefactExtensionHasUnknownTarget
artefact
claims
one of its extensions
is extension
,
but extension.target
is not listed
in extension.pkg
's target
map.
Fields of ArtefactExtensionHasUnknownTarget
artefact: ArtefactQuery<'a> | The artefact that claims an extension with an unknown target. |
extension: ArtefactQuery<'a> | The alleged artefact with the unknown target. |
DependencyLoop(Vec<ArtefactQuery<'a>>)
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]
impl<'a> Debug for ValidationError<'a>
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<'a> Clone for ValidationError<'a>
[src]
impl<'a> Clone for ValidationError<'a>
fn clone(&self) -> ValidationError<'a>
[src]
fn clone(&self) -> ValidationError<'a>
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<'a> PartialEq for ValidationError<'a>
[src]
impl<'a> PartialEq for ValidationError<'a>
fn eq(&self, other: &ValidationError<'a>) -> bool
[src]
fn eq(&self, other: &ValidationError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ValidationError<'a>) -> bool
[src]
fn ne(&self, other: &ValidationError<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for ValidationError<'a>
[src]
impl<'a> Eq for ValidationError<'a>
impl<'a> PartialOrd for ValidationError<'a>
[src]
impl<'a> PartialOrd for ValidationError<'a>
fn partial_cmp(&self, other: &ValidationError<'a>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ValidationError<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ValidationError<'a>) -> bool
[src]
fn lt(&self, other: &ValidationError<'a>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ValidationError<'a>) -> bool
[src]
fn le(&self, other: &ValidationError<'a>) -> 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: &ValidationError<'a>) -> bool
[src]
fn gt(&self, other: &ValidationError<'a>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ValidationError<'a>) -> bool
[src]
fn ge(&self, other: &ValidationError<'a>) -> bool
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]
impl<'a> Ord for ValidationError<'a>
fn cmp(&self, other: &ValidationError<'a>) -> Ordering
[src]
fn cmp(&self, other: &ValidationError<'a>) -> 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<'a> Hash for ValidationError<'a>
[src]
impl<'a> Hash for ValidationError<'a>
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<'a> Display for ValidationError<'a>
[src]
impl<'a> Display for ValidationError<'a>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a> Error for ValidationError<'a>
[src]
impl<'a> Error for ValidationError<'a>
Auto Trait Implementations
impl<'a> Send for ValidationError<'a>
impl<'a> Send for ValidationError<'a>
impl<'a> Sync for ValidationError<'a>
impl<'a> Sync for ValidationError<'a>