pub struct ProtobufDataFormat { /* private fields */ }Implementations§
Source§impl ProtobufDataFormat
impl ProtobufDataFormat
pub fn new<P: AsRef<Path>>( proto_path: P, message_name: &str, ) -> Result<Self, CamelError>
pub fn new_with_cache<P: AsRef<Path>>( proto_path: P, message_name: &str, cache: &ProtoCache, ) -> Result<Self, CamelError>
pub fn descriptor(&self) -> &MessageDescriptor
pub fn json_to_dynamic( &self, json_val: Value, ) -> Result<DynamicMessage, CamelError>
pub fn dynamic_to_json(&self, msg: DynamicMessage) -> Result<Value, CamelError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtobufDataFormat
impl RefUnwindSafe for ProtobufDataFormat
impl Send for ProtobufDataFormat
impl Sync for ProtobufDataFormat
impl Unpin for ProtobufDataFormat
impl UnsafeUnpin for ProtobufDataFormat
impl UnwindSafe for ProtobufDataFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more