pub enum ValidationError {
ConflictingPrereleaseTag {
package: String,
cli_tag: String,
toml_tag: String,
},
CannotGraduateFromPrerelease {
package: String,
current_version: String,
},
GraduateRequiresCratesInWorkspace,
PackageNotFound {
name: String,
available: Vec<String>,
},
CannotGraduateStableVersion {
package: String,
version: String,
},
InvalidPrereleaseTag {
package: String,
tag: String,
reason: String,
},
}Expand description
A single validation error with actionable tip.
Variants§
ConflictingPrereleaseTag
CLI tag differs from pre-release.toml tag
CannotGraduateFromPrerelease
Package in prerelease version cannot be graduated to 1.0.0
GraduateRequiresCratesInWorkspace
–graduate without crate names in workspace
PackageNotFound
Package not found in workspace
CannotGraduateStableVersion
Cannot graduate package >= 1.0.0
InvalidPrereleaseTag
Invalid prerelease tag in pre-release.toml (failed to parse)
Implementations§
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationError
impl Debug for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more