package_json/fs/
write_options.rs

1use derive_builder::Builder;
2
3/// Options used for writing a file.
4#[derive(Debug, Builder, Default)]
5pub struct WriteOptions {
6  /// Set this to `false` to generate a compact JSON, instead of a pretty-printed JSON.
7  #[builder(default = "true")]
8  pub pretty: bool,
9}