pub struct ProtobufConverter;
Expand description
Implementation for a converter between protobuf-encoded bodies and native objects.
Trait Implementations§
source§impl Clone for ProtobufConverter
impl Clone for ProtobufConverter
source§fn clone(&self) -> ProtobufConverter
fn clone(&self) -> ProtobufConverter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Convert for ProtobufConverter
impl Convert for ProtobufConverter
source§fn body_to_operation(
&self,
body: RequestBody,
opcode: Opcode
) -> Result<NativeOperation>
fn body_to_operation( &self, body: RequestBody, opcode: Opcode ) -> Result<NativeOperation>
Create a native operation object from a request body. Read more
source§fn operation_to_body(&self, operation: NativeOperation) -> Result<RequestBody>
fn operation_to_body(&self, operation: NativeOperation) -> Result<RequestBody>
Create a request body from a native operation object. Read more
source§fn body_to_result(
&self,
body: ResponseBody,
opcode: Opcode
) -> Result<NativeResult>
fn body_to_result( &self, body: ResponseBody, opcode: Opcode ) -> Result<NativeResult>
Create a native result object from a response body. Read more
source§fn result_to_body(&self, result: NativeResult) -> Result<ResponseBody>
fn result_to_body(&self, result: NativeResult) -> Result<ResponseBody>
Create a response body from a native result object. Read more