pub enum SpecError {
Show 31 variants
BasisPointsSum {
sum: u64,
},
BasisPointsEntryTooLarge {
value: u32,
},
RevenuePolicyVersionZero,
DuplicateCapabilitySlot(CapabilitySlot),
InvalidLifecycleTransition {
from: RevisionLifecycle,
to: RevisionLifecycle,
},
SchemaMismatch {
expected: &'static str,
actual: String,
},
EnvIdMismatch {
context: &'static str,
expected: EnvId,
actual: EnvId,
},
UnknownDeployment(DeploymentId),
UnknownRevision(RevisionId),
SplitRevisionWrongDeployment {
revision: RevisionId,
expected_deployment: DeploymentId,
actual_deployment: DeploymentId,
},
SplitRevisionWrongBundle {
revision: RevisionId,
expected_bundle: BundleId,
actual_bundle: BundleId,
},
BundleRevisionWrongDeployment {
deployment: DeploymentId,
revision: RevisionId,
actual_deployment: DeploymentId,
},
BundleRevisionWrongBundle {
deployment: DeploymentId,
revision: RevisionId,
expected_bundle: BundleId,
actual_bundle: BundleId,
},
SplitDeploymentBundleMismatch {
deployment: DeploymentId,
split_bundle: BundleId,
deployment_bundle: BundleId,
},
CrossEnvRef {
context: &'static str,
uri: String,
expected_env: EnvId,
actual_env: String,
},
DuplicateMessagingEndpoint(MessagingEndpointId),
DuplicateProviderInstance {
provider_type: String,
provider_id: String,
},
MessagingEndpointBundleNotLinked {
endpoint: MessagingEndpointId,
bundle: BundleId,
},
WelcomeFlowBundleNotLinked {
endpoint: MessagingEndpointId,
bundle: BundleId,
},
EmptyMessagingProviderId,
EmptyMessagingProviderType,
EmptyWelcomeFlowId,
DuplicateExtension {
path: String,
instance_id: Option<String>,
},
InvalidExtensionInstanceId {
path: String,
reason: String,
},
ConfigOverridesTooManyPacks {
count: usize,
max: usize,
},
ConfigOverridesTooManyKeysForPack {
pack_id: String,
count: usize,
max: usize,
},
ConfigOverridesTooLarge {
bytes: usize,
max: usize,
},
ConfigOverrideEmptyPackId,
ConfigOverrideEmptyKey {
pack_id: String,
},
ConfigOverridePackNotInRevisions {
deployment: DeploymentId,
pack_id: String,
},
InvalidPublicBaseUrl {
value: String,
reason: &'static str,
},
}Variants§
BasisPointsSum
BasisPointsEntryTooLarge
RevenuePolicyVersionZero
DuplicateCapabilitySlot(CapabilitySlot)
InvalidLifecycleTransition
SchemaMismatch
EnvIdMismatch
UnknownDeployment(DeploymentId)
UnknownRevision(RevisionId)
SplitRevisionWrongDeployment
SplitRevisionWrongBundle
BundleRevisionWrongDeployment
BundleRevisionWrongBundle
SplitDeploymentBundleMismatch
CrossEnvRef
DuplicateMessagingEndpoint(MessagingEndpointId)
DuplicateProviderInstance
MessagingEndpointBundleNotLinked
WelcomeFlowBundleNotLinked
EmptyMessagingProviderId
EmptyMessagingProviderType
EmptyWelcomeFlowId
DuplicateExtension
InvalidExtensionInstanceId
ConfigOverridesTooManyPacks
ConfigOverridesTooManyKeysForPack
ConfigOverridesTooLarge
ConfigOverrideEmptyPackId
ConfigOverrideEmptyKey
ConfigOverridePackNotInRevisions
InvalidPublicBaseUrl
Trait Implementations§
impl Eq for SpecError
Source§impl Error for SpecError
impl Error for SpecError
1.30.0 · 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()
impl StructuralPartialEq for SpecError
Auto Trait Implementations§
impl Freeze for SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl UnwindSafe for SpecError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.