pub enum PromotionPlanTransformError {
SchemaVersionMismatch {
expected: u32,
found: u32,
},
MissingRequiredField {
field: &'static str,
},
Readiness(PromotionReadinessError),
ReadinessBlocked {
blocker_count: usize,
},
TargetRoleMissing {
role: String,
},
DuplicateRole {
role: String,
},
PromotedPlanIdMismatch {
expected: String,
found: String,
},
PromotedRoleMissing {
role: String,
},
RoleStateMismatch {
role: String,
field: &'static str,
},
}Expand description
PromotionPlanTransformError
Variants§
SchemaVersionMismatch
MissingRequiredField
Readiness(PromotionReadinessError)
ReadinessBlocked
TargetRoleMissing
DuplicateRole
PromotedPlanIdMismatch
PromotedRoleMissing
RoleStateMismatch
Trait Implementations§
Source§impl Debug for PromotionPlanTransformError
impl Debug for PromotionPlanTransformError
Source§impl Error for PromotionPlanTransformError
impl Error for PromotionPlanTransformError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PromotionPlanTransformError> for PromotionPlanTransformEvidenceError
impl From<PromotionPlanTransformError> for PromotionPlanTransformEvidenceError
Source§fn from(source: PromotionPlanTransformError) -> Self
fn from(source: PromotionPlanTransformError) -> Self
Converts to this type from the input type.
Source§impl From<PromotionReadinessError> for PromotionPlanTransformError
impl From<PromotionReadinessError> for PromotionPlanTransformError
Source§fn from(source: PromotionReadinessError) -> Self
fn from(source: PromotionReadinessError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PromotionPlanTransformError
impl RefUnwindSafe for PromotionPlanTransformError
impl Send for PromotionPlanTransformError
impl Sync for PromotionPlanTransformError
impl Unpin for PromotionPlanTransformError
impl UnsafeUnpin for PromotionPlanTransformError
impl UnwindSafe for PromotionPlanTransformError
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