pub enum VersioningError {
Show 26 variants
VersionOutsideEnum {
target: String,
},
DuplicateVersionEnum {
first: String,
second: String,
},
EmptyVersionEnum {
ident: String,
},
DuplicateVersionValue {
value: String,
first: String,
second: String,
},
MissingVersionEnum {
annotation: String,
decl: String,
},
MalformedVersionReference {
annotation: String,
decl: String,
},
MalformedVersionMarker {
decl: String,
},
MalformedVersionParameter {
decl: String,
reason: String,
},
DuplicateVersionParameter {
decl: String,
},
UnknownVersionReference {
annotation: String,
decl: String,
reference: String,
declared: String,
},
UnsupportedVersionAnnotation {
name: String,
decl: String,
},
UnsupportedVersionTarget {
annotation: String,
target: String,
},
VersionedVersionEnum {
annotation: String,
ident: String,
},
DuplicateLifecycleAnnotation {
annotation: String,
decl: String,
},
EmptyAvailability {
decl: String,
added: String,
removed: String,
},
ChildOutsideParent {
decl: String,
parent: String,
version: String,
},
DanglingReference {
decl: String,
reference: String,
version: String,
},
UnversionedSpecification {
selection: String,
},
UnknownSelectedVersion {
selection: String,
declared: String,
},
AmbiguousSelectedVersion {
selection: String,
first: String,
second: String,
},
UnknownVersion {
index: usize,
},
ConflictingSelection {
first: String,
second: String,
},
EmptySelection,
SelectionRequiresOneVersion {
selection: String,
},
UnknownVersionLayout {
value: String,
},
DuplicateWireName {
container: String,
wire: String,
first: String,
second: String,
version: Option<String>,
},
}Expand description
Diagnostics raised while analysing or projecting API versioning annotations.
Variants§
VersionOutsideEnum
@version applied to a declaration that is not an enum.
DuplicateVersionEnum
Two enums in one specification carry the @version marker.
EmptyVersionEnum
The @version enum declares no members.
DuplicateVersionValue
Two version members resolve to the same display value.
MissingVersionEnum
A lifecycle annotation appears without a @version enum in the specification.
MalformedVersionReference
A lifecycle annotation argument is not an Enum::member reference.
MalformedVersionMarker
A raw version marker failed to lower into a valid typed annotation.
MalformedVersionParameter
A version parameter violates its argument or wire-location contract.
DuplicateVersionParameter
A version timeline declares more than one version marker or parameter.
UnknownVersionReference
A lifecycle annotation references a version the timeline does not declare.
UnsupportedVersionAnnotation
A rejected versioning annotation has no supported contract semantics.
UnsupportedVersionTarget
A lifecycle annotation applied to a declaration that cannot carry it.
VersionedVersionEnum
The @version enum itself carries a lifecycle annotation.
DuplicateLifecycleAnnotation
The same lifecycle annotation appears twice on one declaration.
EmptyAvailability
@added and @removed leave an empty availability interval.
ChildOutsideParent
A child’s annotated interval reaches outside its parent’s interval.
DanglingReference
A surviving declaration references a declaration the projection drops.
UnversionedSpecification
A version selection was requested for a specification without a @version enum.
UnknownSelectedVersion
A requested version is not declared by the timeline.
AmbiguousSelectedVersion
A requested version matches both a member ident and another member’s value.
UnknownVersion
The projector received a version position outside the timeline.
ConflictingSelection
Both version selection properties were set.
EmptySelection
The requested version selection is empty.
SelectionRequiresOneVersion
api_version received *, which only api_versions accepts.
UnknownVersionLayout
The version layout property holds an unknown value.
DuplicateWireName
Two declarations available in the same version resolve to the same effective wire name inside one container.
Trait Implementations§
Source§impl Clone for VersioningError
impl Clone for VersioningError
Source§impl Debug for VersioningError
impl Debug for VersioningError
Source§impl Display for VersioningError
impl Display for VersioningError
Source§impl Error for VersioningError
impl Error for VersioningError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()