Trait cloudevents::message::BinarySerializer
source · pub trait BinarySerializer<RETURN: Sized>where
Self: Sized,{
// Required methods
fn set_spec_version(self, spec_version: SpecVersion) -> Result<Self>;
fn set_attribute(
self,
name: &str,
value: MessageAttributeValue,
) -> Result<Self>;
fn set_extension(
self,
name: &str,
value: MessageAttributeValue,
) -> Result<Self>;
fn end_with_data(self, bytes: Vec<u8>) -> Result<RETURN>;
fn end(self) -> Result<RETURN>;
}
Expand description
Serializer for binary mode messages.
Required Methods§
fn set_spec_version(self, spec_version: SpecVersion) -> Result<Self>
fn set_attribute(self, name: &str, value: MessageAttributeValue) -> Result<Self>
fn set_extension(self, name: &str, value: MessageAttributeValue) -> Result<Self>
fn end_with_data(self, bytes: Vec<u8>) -> Result<RETURN>
fn end(self) -> Result<RETURN>
Object Safety§
This trait is not object safe.