pub struct ProtobufConfig {
pub content_type_format: Option<String>,
pub instance_class: Option<String>,
}Fields§
§content_type_format: Option<String>Optional content type format, e.g. application/protobuf or application/json.
When unset, binary protobuf is assumed.
instance_class: Option<String>Optional fully-qualified class/type name used for deserialization.
Implementations§
Source§impl ProtobufConfig
impl ProtobufConfig
pub fn validate(&self) -> Result<(), CamelError>
Trait Implementations§
Source§impl Clone for ProtobufConfig
impl Clone for ProtobufConfig
Source§fn clone(&self) -> ProtobufConfig
fn clone(&self) -> ProtobufConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtobufConfig
impl Debug for ProtobufConfig
Source§impl Default for ProtobufConfig
impl Default for ProtobufConfig
Source§fn default() -> ProtobufConfig
fn default() -> ProtobufConfig
Returns the “default value” for a type. Read more
impl Eq for ProtobufConfig
Source§impl PartialEq for ProtobufConfig
impl PartialEq for ProtobufConfig
Source§fn eq(&self, other: &ProtobufConfig) -> bool
fn eq(&self, other: &ProtobufConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtobufConfig
Auto Trait Implementations§
impl Freeze for ProtobufConfig
impl RefUnwindSafe for ProtobufConfig
impl Send for ProtobufConfig
impl Sync for ProtobufConfig
impl Unpin for ProtobufConfig
impl UnsafeUnpin for ProtobufConfig
impl UnwindSafe for ProtobufConfig
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