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 BatchItemResponse
s.
This means also that no errors occurred.
Returns the amount of BatchItemResponse
s.
Usually at least one contains an error.
Iterate over all BatchItemResponse
s
Iterate over all BatchItemResponse
s where the publishing status is PublishingStatus::Failed
Iterate over all BatchItemResponse
s where the publishing status is PublishingStatus::Aborted
Iterate over all BatchItemResponse
s where the publishing status is PublishingStatus::Submitted
Iterate over all BatchItemResponse
s where the publishing status is not PublishingStatus::Submitted
Trait Implementations
type Item = BatchItemResponse
type Item = BatchItemResponse
The type of the elements being iterated over.
type IntoIter = IntoIter<BatchItemResponse>
type IntoIter = IntoIter<BatchItemResponse>
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for SubmissionFailure
impl Send for SubmissionFailure
impl Sync for SubmissionFailure
impl Unpin for SubmissionFailure
impl UnwindSafe for SubmissionFailure
Blanket Implementations
Mutably borrows from an owned value. Read more