pub struct BatchMessage {
pub body: Vec<u8>,
pub content_type: Option<String>,
pub group_id: Option<String>,
pub deduplication_id: Option<String>,
}Expand description
One message of Client::publish_batch: the same fields as Client::publish. The bytes travel in base64,
so any type fits.
Fields§
§body: Vec<u8>§content_type: Option<String>What the bytes are (None: application/json).
group_id: Option<String>Required on a FIFO queue; elsewhere it guides the fair delivery.
deduplication_id: Option<String>FIFO queues only: the deduplication key inside the group.
Implementations§
Trait Implementations§
Source§impl Clone for BatchMessage
impl Clone for BatchMessage
Source§impl Debug for BatchMessage
impl Debug for BatchMessage
impl Eq for BatchMessage
Source§impl PartialEq for BatchMessage
impl PartialEq for BatchMessage
impl StructuralPartialEq for BatchMessage
Auto Trait Implementations§
impl Forget for BatchMessage
impl Freeze for BatchMessage
impl RefUnwindSafe for BatchMessage
impl Send for BatchMessage
impl Sync for BatchMessage
impl Unpin for BatchMessage
impl UnsafeUnpin for BatchMessage
impl UnwindSafe for BatchMessage
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