pub enum ValidationErrorKind {
Show 28 variants
InvalidVersion {
found: String,
},
EmptyDeploymentName,
EmptyServiceName,
EmptyImageName,
InvalidPort {
port: u32,
},
InvalidCpu {
cpu: f64,
},
InvalidMemoryFormat {
value: String,
},
InvalidDuration {
value: String,
},
DuplicateEndpoint {
name: String,
},
UnknownInitAction {
action: String,
},
UnknownDependency {
service: String,
},
CircularDependency {
service: String,
depends_on: String,
},
InvalidScaleRange {
min: u32,
max: u32,
},
EmptyScaleTargets,
InvalidEnvVar {
key: String,
reason: String,
},
InvalidCronSchedule {
schedule: String,
reason: String,
},
ScheduleOnlyForCron,
CronRequiresSchedule,
Generic {
message: String,
},
InsufficientNodes {
required: usize,
available: usize,
message: String,
},
InvalidTunnelProtocol {
protocol: String,
},
InvalidTunnelPort {
port: u16,
field: String,
},
InvalidTunnelTtl {
value: String,
reason: String,
},
WasmConfigOnNonWasmType,
InvalidWasmInstanceRange {
min: u32,
max: u32,
},
WasmCapabilityNotAvailable {
capability: String,
service_type: String,
},
WasmHttpMissingHttpEndpoint,
WasmPreopenEmpty {
index: usize,
field: String,
},
}Expand description
The specific kind of validation error
Variants§
InvalidVersion
Version is not “v1”
EmptyDeploymentName
Deployment name is empty
EmptyServiceName
Service name is empty
EmptyImageName
Image name is empty
InvalidPort
Port is out of valid range (1-65535)
InvalidCpu
CPU limit is invalid (must be > 0)
InvalidMemoryFormat
Memory format is invalid
InvalidDuration
Duration format is invalid
DuplicateEndpoint
Service has duplicate endpoints
UnknownInitAction
Unknown init action
UnknownDependency
Dependency references unknown service
CircularDependency
Circular dependency detected
InvalidScaleRange
Scale min > max
EmptyScaleTargets
Scale targets are empty in adaptive mode
InvalidEnvVar
Invalid environment variable
InvalidCronSchedule
Invalid cron schedule expression
ScheduleOnlyForCron
Schedule field is only valid for rtype: cron
CronRequiresSchedule
rtype: cron requires a schedule field
Generic
Generic validation error (from validator crate)
InsufficientNodes
Not enough nodes available for dedicated/exclusive placement
InvalidTunnelProtocol
Invalid tunnel protocol (must be tcp or udp)
InvalidTunnelPort
Invalid tunnel port (must be 0 or 1-65535)
InvalidTunnelTtl
Invalid tunnel TTL format
WasmConfigOnNonWasmType
WASM config present on non-WASM service type
InvalidWasmInstanceRange
WASM min_instances > max_instances
WasmCapabilityNotAvailable
WASM capability not available for this service type
WasmHttpMissingHttpEndpoint
WasmHttp service missing HTTP endpoint
WasmPreopenEmpty
WASM preopen with empty source or target
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
Source§impl<'de> Deserialize<'de> for ValidationErrorKind
impl<'de> Deserialize<'de> for ValidationErrorKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValidationErrorKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValidationErrorKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ValidationErrorKind
impl Display for ValidationErrorKind
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
Source§impl Serialize for ValidationErrorKind
impl Serialize for ValidationErrorKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnsafeUnpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C> SignWithKey<String> for Cwhere
C: ToBase64,
impl<C> SignWithKey<String> for Cwhere
C: ToBase64,
fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result<String, Error>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.