Enum nakadi_types::publishing::SubmissionFailure[][src]

pub enum SubmissionFailure {
    Unprocessable(Vec<BatchItemResponse>),
    NotAllSubmitted(Vec<BatchItemResponse>),
}
Expand description

The outcome of a submission/publishing attempt to Nakadi.

See also Nakadi Manual

Variants

Unprocessable(Vec<BatchItemResponse>)

At least one event failed to be validated, enriched or partitioned. None were submitted.

Nakadi responded with 422-UNPROCESSABLE.

NotAllSubmitted(Vec<BatchItemResponse>)

At least one event has failed to be submitted. The batch might be partially submitted.

Nakadi responded with 207-MULTI STATUS.

Implementations

Returns true if there are no BatchItemResponses.

This means also that no errors occurred.

Returns the amount of BatchItemResponses.

Usually at least one contains an error.

Iterate over all BatchItemResponses

Iterate over all BatchItemResponses where the publishing status is PublishingStatus::Failed

Iterate over all BatchItemResponses where the publishing status is PublishingStatus::Aborted

Iterate over all BatchItemResponses where the publishing status is PublishingStatus::Submitted

Iterate over all BatchItemResponses where the publishing status is not PublishingStatus::Submitted

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.