pub struct Message {
pub id: String,
pub body: Vec<u8>,
pub content_type: String,
pub receipt_token: String,
pub delivery_count: u64,
pub published_at: String,
pub invisible_until: String,
pub group_id: Option<String>,
pub deduplication_id: Option<String>,
pub dead_lettered_at: Option<String>,
pub dead_letter_reason: Option<String>,
pub raw: String,
}Expand description
A delivered message. The body always comes out as bytes (section 18.4).
Fields§
§id: String§body: Vec<u8>§content_type: String§receipt_token: String§delivery_count: u64§published_at: String§invisible_until: String§group_id: Option<String>§deduplication_id: Option<String>§dead_lettered_at: Option<String>§dead_letter_reason: Option<String>§raw: StringThe message JSON, as the server returned it.
Implementations§
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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