pub struct ProtobufDecoderOptions {
pub descriptor_path: String,
pub message_name: String,
pub max_size: Option<usize>,
}Expand description
Options for configuring Protobuf decoding.
Fields§
§descriptor_path: StringPath to the Protobuf descriptor file.
message_name: StringFully qualified name of the Protobuf message.
max_size: Option<usize>Maximum size of a single message in bytes.
Trait Implementations§
Source§impl Clone for ProtobufDecoderOptions
impl Clone for ProtobufDecoderOptions
Source§fn clone(&self) -> ProtobufDecoderOptions
fn clone(&self) -> ProtobufDecoderOptions
Returns a duplicate 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 Debug for ProtobufDecoderOptions
impl Debug for ProtobufDecoderOptions
Source§impl Default for ProtobufDecoderOptions
impl Default for ProtobufDecoderOptions
Source§impl<'de> Deserialize<'de> for ProtobufDecoderOptions
impl<'de> Deserialize<'de> for ProtobufDecoderOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProtobufDecoderOptions
impl PartialEq for ProtobufDecoderOptions
Source§impl Serialize for ProtobufDecoderOptions
impl Serialize for ProtobufDecoderOptions
impl StructuralPartialEq for ProtobufDecoderOptions
Auto Trait Implementations§
impl Freeze for ProtobufDecoderOptions
impl RefUnwindSafe for ProtobufDecoderOptions
impl Send for ProtobufDecoderOptions
impl Sync for ProtobufDecoderOptions
impl Unpin for ProtobufDecoderOptions
impl UnsafeUnpin for ProtobufDecoderOptions
impl UnwindSafe for ProtobufDecoderOptions
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