pub enum ErrorCode {
Show 14 variants
Schema,
NumberTooLarge,
CountsMissing,
CountsInconsistent,
AttachmentRefUnknown,
AttachmentPathInvalid,
MetricIdInvalid,
TypeMismatch,
NotIndexed,
UnknownPath,
AttachmentMissing,
LabelInUse,
NamespaceInUse,
RegistryEntryExists,
}Expand description
The closed set of error codes.
Variants§
Schema
JSON Schema violation: unknown key, wrong type, missing required key.
NumberTooLarge
An integer outside ±2^53.
CountsMissing
results is non-empty but counts is absent.
CountsInconsistent
counts.attempted < completed + failed + skipped + errored.
AttachmentRefUnknown
A samples_ref, calls or artifacts[] entry names no attachments[].path.
AttachmentPathInvalid
An attachments[].path is duplicated, absolute, or contains ...
MetricIdInvalid
A results[].metric is not of the form {ns}/{name}.
TypeMismatch
Query: operator applied to a path of another type.
NotIndexed
Query: operator needs an index the path does not have.
UnknownPath
Query: path not in the schema.
AttachmentMissing
An attachments[].sha256 has not been uploaded and confirmed.
LabelInUse
The requested @{label} already names another version.
NamespaceInUse
The requested organisation slug is already a user or an organisation.
RegistryEntryExists
A registry entry already exists at that address. Entries are immutable, so a correction is a new version.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
Source§impl JsonSchema for ErrorCode
impl JsonSchema for ErrorCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more