oca_rs::facade

Trait Encode

Source
pub trait Encode {
    // Required method
    fn encode(
        &self,
        code: &SelfAddressing,
        serialization_format: &SerializationFormats,
    ) -> Result<Vec<u8>, Error>;
}

Required Methods§

Source

fn encode( &self, code: &SelfAddressing, serialization_format: &SerializationFormats, ) -> Result<Vec<u8>, Error>

Implementations on Foreign Types§

Source§

impl Encode for OCABundle

Source§

fn encode( &self, code: &SelfAddressing, format: &SerializationFormats, ) -> Result<Vec<u8>, Error>

Source§

impl Encode for Transformation

Source§

fn encode( &self, code: &SelfAddressing, format: &SerializationFormats, ) -> Result<Vec<u8>, Error>

Implementors§