pub struct BatchMetadata {
pub total_messages: usize,
pub source_queues: Vec<String>,
pub status: BatchStatus,
pub error: Option<String>,
}Expand description
Metadata for a message batch
Fields§
§total_messages: usizeTotal number of messages in the batch
source_queues: Vec<String>Source queues represented in this batch
status: BatchStatusBatch processing status
error: Option<String>Error information if batch failed
Trait Implementations§
Source§impl Clone for BatchMetadata
impl Clone for BatchMetadata
Source§fn clone(&self) -> BatchMetadata
fn clone(&self) -> BatchMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchMetadata
impl Debug for BatchMetadata
Source§impl Default for BatchMetadata
impl Default for BatchMetadata
Source§fn default() -> BatchMetadata
fn default() -> BatchMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchMetadata
impl<'de> Deserialize<'de> for BatchMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchMetadata
impl RefUnwindSafe for BatchMetadata
impl Send for BatchMetadata
impl Sync for BatchMetadata
impl Unpin for BatchMetadata
impl UnsafeUnpin for BatchMetadata
impl UnwindSafe for BatchMetadata
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
Mutably borrows from an owned value. Read more