Struct ron::ser::PrettyConfig
source · pub struct PrettyConfig {
pub depth_limit: usize,
pub new_line: String,
pub indentor: String,
pub separate_tuple_members: bool,
pub enumerate_arrays: bool,
}
Expand description
Pretty serializer configuration
Fields§
§depth_limit: usize
Limit the pretty-ness up to the given depth.
new_line: String
New line string
indentor: String
Indentation string
separate_tuple_members: bool
Separate tuple members with indentation
enumerate_arrays: bool
Enumerate array items in comments
Trait Implementations§
source§impl Clone for PrettyConfig
impl Clone for PrettyConfig
source§fn clone(&self) -> PrettyConfig
fn clone(&self) -> PrettyConfig
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 Debug for PrettyConfig
impl Debug for PrettyConfig
source§impl Default for PrettyConfig
impl Default for PrettyConfig
source§impl<'de> Deserialize<'de> for PrettyConfig
impl<'de> Deserialize<'de> for PrettyConfig
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