[][src]Struct cloudevents_sdk_rdkafka::MessageRecord

pub struct MessageRecord { /* fields omitted */ }

This struct contains a serialized CloudEvent message in the Kafka shape. Implements StructuredSerializer & BinarySerializer traits.

To instantiate a new MessageRecord from an Event, look at Self::from_event or use StructuredDeserializer::deserialize_structured or BinaryDeserializer::deserialize_binary.

Implementations

impl MessageRecord[src]

pub fn new() -> Self[src]

Create a new empty MessageRecord

pub fn from_event(event: Event) -> Result<Self>[src]

Create a new MessageRecord, filled with event serialized in binary mode.

Trait Implementations

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, 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>,