pub enum Rejection {
Show 22 variants
Body,
UnknownField,
Schema,
SchemaUnsupported,
Install,
Client,
ClientKind,
ClientVersion,
ClientPlatform,
ClientArch,
Modules,
ModulesDuplicate,
ModulesTooMany,
Events,
EventsEmpty,
EventsTooMany,
EventName,
EventOutcome,
EventError,
ErrorMismatch,
EventDuration,
EventCount,
}Expand description
Why Batch::parse refused a batch. The rendering is the contract: a
fixed sentence that names the field path and the rule, and never
echoes the offending value. An error body that quoted what the client
sent would be the free-text channel this module exists to close, one
Debug print away from a log file.
Variants§
Body
The body is not a JSON object.
UnknownField
A field the schema does not define, at any level.
Schema
/schema is missing or not a number.
SchemaUnsupported
/schema names a version this collector does not parse.
Install
/install is not 32 lowercase hex characters.
Client
/client is missing or not an object.
ClientKind
/client/kind is not a declared kind.
ClientVersion
/client/version is not a release triple.
ClientPlatform
/client/platform is not a declared platform.
ClientArch
/client/arch is not a declared architecture.
Modules
/modules is not a list of declared names.
ModulesDuplicate
/modules names the same module more than once.
ModulesTooMany
/modules carries more than the schema ceiling.
Events
/events is not a list of records.
EventsEmpty
/events carries no record.
EventsTooMany
/events carries more than the configured ceiling.
EventName
/events[]/name is not a declared event name.
EventOutcome
/events[]/outcome is not a declared outcome.
EventError
/events[]/error is not a declared error class.
ErrorMismatch
/events[]/error contradicts /events[]/outcome.
EventDuration
/events[]/duration is not a declared bucket.
EventCount
/events[]/count is not a whole number in range.
Trait Implementations§
impl Copy for Rejection
impl Eq for Rejection
impl StructuralPartialEq for Rejection
Auto Trait Implementations§
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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<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
key and return true if they are equal.