[][src]Struct ratsio::stan_client::StanMessage

pub struct StanMessage {
    pub subject: String,
    pub reply_to: Option<String>,
    pub payload: Vec<u8>,
    pub timestamp: i64,
    pub sequence: u64,
    pub redelivered: bool,
    pub ack_inbox: Option<String>,
    // some fields omitted
}

Fields

subject: Stringreply_to: Option<String>payload: Vec<u8>timestamp: i64sequence: u64redelivered: boolack_inbox: Option<String>

Implementations

impl StanMessage[src]

pub fn new(subject: String, payload: Vec<u8>) -> Self[src]

pub fn with_reply(
    subject: String,
    payload: Vec<u8>,
    reply_to: Option<String>
) -> Self
[src]

pub fn builder() -> StanMessageBuilder[src]

Trait Implementations

impl Clone for StanMessage[src]

impl Debug for StanMessage[src]

impl Default for StanMessage[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.