[−][src]Struct nakadion::publisher::BatchResponse
An aggregation of status items corresponding to each individual Event’s publishing attempt.
See also Nakadi Manual
Fields
flow_id: Option<FlowId>
Since this struct is usually part of a failure scenario it
can contain a FlowId
batch_items: Vec<BatchItemResponse>
Implementations
impl BatchResponse
[src]
pub fn is_empty(&self) -> bool
[src]
Returns true if there are no BatchItemResponse
s.
This means also that no errors occurred.
pub fn len(&self) -> usize
[src]
Returns the amount of BatchItemResponse
s.
Usually at least one contains an error.
pub fn failed_response_items(&self) -> impl Iterator<Item = &BatchItemResponse>
[src]
Iterate over all BatchItemResponse
s where the publishing status is PublishingStatus::Failed
pub fn aborted_response_items(&self) -> impl Iterator<Item = &BatchItemResponse>
[src]
Iterate over all BatchItemResponse
s where the publishing status is PublishingStatus::Aborted
pub fn submitted_response_items(
&self
) -> impl Iterator<Item = &BatchItemResponse>
[src]
&self
) -> impl Iterator<Item = &BatchItemResponse>
Iterate over all BatchItemResponse
s where the publishing status is PublishingStatus::Submitted
pub fn non_submitted_response_items(
&self
) -> impl Iterator<Item = &BatchItemResponse>
[src]
&self
) -> impl Iterator<Item = &BatchItemResponse>
Iterate over all BatchItemResponse
s where the publishing status is not PublishingStatus::Submitted
pub fn iter(&self) -> impl Iterator<Item = &BatchItemResponse>
[src]
Iterate over all BatchItemResponse
s
pub fn stats(&self) -> BatchStats
[src]
Trait Implementations
impl Clone for BatchResponse
[src]
fn clone(&self) -> BatchResponse
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BatchResponse
[src]
impl Default for BatchResponse
[src]
fn default() -> BatchResponse
[src]
impl<'de> Deserialize<'de> for BatchResponse
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<BatchResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<BatchResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for BatchResponse
[src]
impl IntoIterator for BatchResponse
[src]
type Item = BatchItemResponse
The type of the elements being iterated over.
type IntoIter = IntoIter<BatchItemResponse>
Which kind of iterator are we turning this into?
fn into_iter(self) -> <BatchResponse as IntoIterator>::IntoIter
[src]
impl Serialize for BatchResponse
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for BatchResponse
impl Send for BatchResponse
impl Sync for BatchResponse
impl Unpin for BatchResponse
impl UnwindSafe for BatchResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,