pub struct TracerConfig { /* private fields */ }
Expand description
Configuration object to create a tracer.
Implementations§
Source§impl TracerConfig
impl TracerConfig
Sourcepub fn is_human_readable(self, value: bool) -> Self
pub fn is_human_readable(self, value: bool) -> Self
Whether to trace the human readable encoding of (de)serialization.
Sourcepub fn record_samples_for_newtype_structs(self, value: bool) -> Self
pub fn record_samples_for_newtype_structs(self, value: bool) -> Self
Record samples of newtype structs during serialization and inject them during deserialization.
Sourcepub fn record_samples_for_tuple_structs(self, value: bool) -> Self
pub fn record_samples_for_tuple_structs(self, value: bool) -> Self
Record samples of tuple structs during serialization and inject them during deserialization.
Sourcepub fn record_samples_for_structs(self, value: bool) -> Self
pub fn record_samples_for_structs(self, value: bool) -> Self
Record samples of (regular) structs during serialization and inject them during deserialization.
Sourcepub fn default_bool_value(self, value: bool) -> Self
pub fn default_bool_value(self, value: bool) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_u8_value(self, value: u8) -> Self
pub fn default_u8_value(self, value: u8) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_u16_value(self, value: u16) -> Self
pub fn default_u16_value(self, value: u16) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_u32_value(self, value: u32) -> Self
pub fn default_u32_value(self, value: u32) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_u64_value(self, value: u64) -> Self
pub fn default_u64_value(self, value: u64) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_u128_value(self, value: u128) -> Self
pub fn default_u128_value(self, value: u128) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_i8_value(self, value: i8) -> Self
pub fn default_i8_value(self, value: i8) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_i16_value(self, value: i16) -> Self
pub fn default_i16_value(self, value: i16) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_i32_value(self, value: i32) -> Self
pub fn default_i32_value(self, value: i32) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_i64_value(self, value: i64) -> Self
pub fn default_i64_value(self, value: i64) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_i128_value(self, value: i128) -> Self
pub fn default_i128_value(self, value: i128) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_f32_value(self, value: f32) -> Self
pub fn default_f32_value(self, value: f32) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_f64_value(self, value: f64) -> Self
pub fn default_f64_value(self, value: f64) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_char_value(self, value: char) -> Self
pub fn default_char_value(self, value: char) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_borrowed_str_value(self, value: &'static str) -> Self
pub fn default_borrowed_str_value(self, value: &'static str) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_string_value(self, value: String) -> Self
pub fn default_string_value(self, value: String) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_borrowed_bytes_value(self, value: &'static [u8]) -> Self
pub fn default_borrowed_bytes_value(self, value: &'static [u8]) -> Self
The default serialized value for this primitive type.
Sourcepub fn default_byte_buf_value(self, value: Vec<u8>) -> Self
pub fn default_byte_buf_value(self, value: Vec<u8>) -> Self
The default serialized value for this primitive type.