#[repr(C)]pub struct FigSerializeOptions {
pub size: u32,
pub pretty: u8,
pub indent: u8,
pub strip_comments: u8,
pub lossless: u8,
pub width: u16,
pub flow: u8,
}Expand description
Output style for fig_value_serialize_opts/fig_document_serialize. Mirrors
FigSerializeOptions in fig.h. ALL trailing fields are declared explicitly
(not left to struct padding): with size = size_of the core reads every byte
up to size, so an undeclared strip_comments/lossless would otherwise be
read out of uninitialized padding.
Fields§
§size: u32Set to size_of::<FigSerializeOptions>(). Version tag for the struct:
the core reads a field only when size covers it, so fields can be
appended without breaking this layout. See FigSerializeOptions in fig.h.
pretty: u8§indent: u8§strip_comments: u8§lossless: u8§width: u16§flow: u8fig-format fragments only: nonzero renders a container root as inline
flow ([a, b] / { k = v }). Set by the editors’ splice path (see
value_text); not exposed on the public SerializeOptions — inline is
a property of where the text goes, not a caller style preference.
Trait Implementations§
Source§impl Clone for FigSerializeOptions
impl Clone for FigSerializeOptions
Source§fn clone(&self) -> FigSerializeOptions
fn clone(&self) -> FigSerializeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more