Trait fefix::json::Configure [−][src]
pub trait Configure: Clone + Default {
fn pretty_print(&self) -> bool { ... }
}
This is supported on crate feature
json-encoding
only.Expand description
Configuration interface for the FIX JSON encoding format.
Provided methods
fn pretty_print(&self) -> bool
fn pretty_print(&self) -> bool
This setting indicates that all encoded messages should be “prettified” if possible, i.e. the JSON code will not be compressed and instead it will have indentation and other whitespace that favors human readability. Some performance loss and increased payload size is expected.
This is turned off be default.
This setting has no effect when decoding messages.
Output examples
With “pretty print”:
{
"Header": {
"...": "..."
},
"Body": {
"...": "..."
},
"Trailer": {
"...": "..."
}
}
Without “pretty print”:
{"Header":{"...":"..."},"Body":{"...":"..."},"Trailer":{"...":"..."}}