[][src]Struct mqttest::DumpPayload

pub struct DumpPayload {
    pub len: usize,
    pub raw: Vec<u8>,
    pub utf8: Option<String>,
    pub json: Option<Value>,
    pub err: Option<String>,
}

Fields

len: usize

Length (in bytes) of the publish payload.

raw: Vec<u8>

The original payload as an array of bytes.

utf8: Option<String>

The decoded payload as a string, if it is valid utf-8.

json: Option<Value>

The decoded payload as a json value, if it is valid json.

err: Option<String>

Error message from the external decoder, if decoding failed.

Trait Implementations

impl Clone for DumpPayload[src]

impl Debug for DumpPayload[src]

impl<'de> Deserialize<'de> for DumpPayload[src]

impl Serialize for DumpPayload[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,