#[non_exhaustive]pub enum JsonSchemaRegistryError {
Show 15 variants
Empty,
TooManySchemas {
maximum: usize,
actual: usize,
},
DuplicateReference {
reference: Box<SchemaReference>,
},
DuplicateId {
existing: Box<SchemaReference>,
rejected: Box<SchemaReference>,
},
SchemaRootNotObject,
UnsupportedDialect,
IdMismatch {
reference: Box<SchemaReference>,
},
InvalidSchema {
diagnostic: Box<str>,
},
Canonicalization,
GeneratedSchemaSerialization,
SchemaTooLarge {
maximum: usize,
actual: usize,
},
DigestMismatch {
reference: Box<SchemaReference>,
},
AggregateTooLarge {
maximum: usize,
actual: usize,
},
RegistryPreparation {
diagnostic: Box<str>,
},
ValidatorCompilation {
reference: Box<SchemaReference>,
diagnostic: Box<str>,
},
}Expand description
Startup-time failure while constructing an offline schema registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Empty
Runtime execution without any trusted schema would fail open.
TooManySchemas
The configured resource count was exhausted.
DuplicateReference
The complete immutable reference was registered twice.
Fields
reference: Box<SchemaReference>Repeated reference.
DuplicateId
One URI attempted to identify multiple immutable resources.
Fields
existing: Box<SchemaReference>First immutable reference.
rejected: Box<SchemaReference>Rejected immutable reference.
SchemaRootNotObject
A schema document was not an object and could not carry identity.
UnsupportedDialect
The exact mandatory dialect declaration was absent.
IdMismatch
$id did not equal the normalized pinned URI.
Fields
reference: Box<SchemaReference>Expected immutable reference.
InvalidSchema
The schema did not satisfy the official meta-schema.
Canonicalization
RFC 8785 serialization unexpectedly failed.
GeneratedSchemaSerialization
A generated Rust schema could not be represented as JSON.
SchemaTooLarge
Canonical bytes exceeded the configured single-resource limit.
DigestMismatch
Canonical schema bytes did not match the pinned digest.
Fields
reference: Box<SchemaReference>Rejected immutable reference.
AggregateTooLarge
Aggregate canonical bytes exceeded the configured limit.
RegistryPreparation
The local resource graph could not be prepared.
ValidatorCompilation
One exact schema could not compile with offline reference resolution.
Trait Implementations§
Source§impl Clone for JsonSchemaRegistryError
impl Clone for JsonSchemaRegistryError
Source§impl Debug for JsonSchemaRegistryError
impl Debug for JsonSchemaRegistryError
Source§impl Display for JsonSchemaRegistryError
impl Display for JsonSchemaRegistryError
impl Eq for JsonSchemaRegistryError
Source§impl Error for JsonSchemaRegistryError
impl Error for JsonSchemaRegistryError
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()
Source§impl From<JsonSchemaRegistryError> for StandardAgentAdmissionSchemaRegistrationError
impl From<JsonSchemaRegistryError> for StandardAgentAdmissionSchemaRegistrationError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for AgentDeadlineBuildError
impl From<JsonSchemaRegistryError> for AgentDeadlineBuildError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for RunFailureCloseBuildError
impl From<JsonSchemaRegistryError> for RunFailureCloseBuildError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for StandardAgentCancellationSchemaRegistrationError
impl From<JsonSchemaRegistryError> for StandardAgentCancellationSchemaRegistrationError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for ChildReconcilerBuildError
impl From<JsonSchemaRegistryError> for ChildReconcilerBuildError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for StandardGraphDriverSchemaRegistrationError
impl From<JsonSchemaRegistryError> for StandardGraphDriverSchemaRegistrationError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for StandardInvocationExecutionSchemaRegistrationError
impl From<JsonSchemaRegistryError> for StandardInvocationExecutionSchemaRegistrationError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for StandardGraphLifecycleSchemaRegistrationError
impl From<JsonSchemaRegistryError> for StandardGraphLifecycleSchemaRegistrationError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl From<JsonSchemaRegistryError> for StandardAgentServiceControlSchemaRegistrationError
impl From<JsonSchemaRegistryError> for StandardAgentServiceControlSchemaRegistrationError
Source§fn from(source: JsonSchemaRegistryError) -> Self
fn from(source: JsonSchemaRegistryError) -> Self
Source§impl PartialEq for JsonSchemaRegistryError
impl PartialEq for JsonSchemaRegistryError
impl StructuralPartialEq for JsonSchemaRegistryError
Auto Trait Implementations§
impl Forget for JsonSchemaRegistryError
impl Freeze for JsonSchemaRegistryError
impl Move for JsonSchemaRegistryError
impl RefUnwindSafe for JsonSchemaRegistryError
impl Send for JsonSchemaRegistryError
impl Sync for JsonSchemaRegistryError
impl Unpin for JsonSchemaRegistryError
impl UnsafeUnpin for JsonSchemaRegistryError
impl UnwindSafe for JsonSchemaRegistryError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more