pub struct ReceivedMessage {
pub message_id: String,
pub data: Bytes,
pub attributes: HashMap<String, String>,
pub publish_time: DateTime<Utc>,
pub ordering_key: Option<String>,
pub delivery_attempt: i32,
/* private fields */
}Expand description
Received message from Pub/Sub.
Fields§
§message_id: StringMessage ID.
data: BytesMessage data payload.
attributes: HashMap<String, String>Message attributes.
publish_time: DateTime<Utc>Publish timestamp.
ordering_key: Option<String>Ordering key if present.
delivery_attempt: i32Delivery attempt count.
Implementations§
Trait Implementations§
Source§impl Clone for ReceivedMessage
impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
fn clone(&self) -> ReceivedMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ReceivedMessage
impl RefUnwindSafe for ReceivedMessage
impl Send for ReceivedMessage
impl Sync for ReceivedMessage
impl Unpin for ReceivedMessage
impl UnsafeUnpin for ReceivedMessage
impl UnwindSafe for ReceivedMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request