[][src]Struct rsmq_async_lite::RsmqMessage

pub struct RsmqMessage<T: Serialize + DeserializeOwned + Clone> {
    pub id: String,
    pub message: T,
    pub rc: u64,
    pub fr: u64,
    pub sent: u64,
}

A new RSMQ message. You will get this when using pop_message or receive_message methods

Fields

id: String

Message id. Used later for change_message_visibility and delete_message

message: T

Message content. It is wrapped in an string. If you are sending other format (JSON, etc) you will need to decode the message in your code

rc: u64

Number of times the message was received by a client

fr: u64

Timestamp (epoch in seconds) of when was this message received

sent: u64

Timestamp (epoch in seconds) of when was this message sent

Trait Implementations

impl<T: Clone + Serialize + DeserializeOwned> Clone for RsmqMessage<T>[src]

impl<T: Debug + Serialize + DeserializeOwned + Clone> Debug for RsmqMessage<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RsmqMessage<T> where
    T: RefUnwindSafe

impl<T> Send for RsmqMessage<T> where
    T: Send

impl<T> Sync for RsmqMessage<T> where
    T: Sync

impl<T> Unpin for RsmqMessage<T> where
    T: Unpin

impl<T> UnwindSafe for RsmqMessage<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,