pub struct OptionsIncomplete {
pub indent_string: Option<String>,
pub trailing_comma: Option<bool>,
pub trailing_newline: Option<bool>,
pub format_key: Option<bool>,
}Expand description
All the formatting options.
Fields§
§indent_string: Option<String>Indentation to use, should be tabs or spaces but technically could be anything.
trailing_comma: Option<bool>Put trailing commas for multiline arrays/objects.
trailing_newline: Option<bool>Add trailing newline to the source.
format_key: Option<bool>Remove unnecessary quote or choose better quote for property.
Implementations§
Source§impl OptionsIncomplete
impl OptionsIncomplete
pub fn from_options(opts: Options) -> Self
Trait Implementations§
Source§impl Clone for OptionsIncomplete
impl Clone for OptionsIncomplete
Source§fn clone(&self) -> OptionsIncomplete
fn clone(&self) -> OptionsIncomplete
Returns a duplicate 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 OptionsIncomplete
impl Debug for OptionsIncomplete
Source§impl Default for OptionsIncomplete
impl Default for OptionsIncomplete
Source§fn default() -> OptionsIncomplete
fn default() -> OptionsIncomplete
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionsIncomplete
impl<'de> Deserialize<'de> for OptionsIncomplete
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
Source§impl PartialEq for OptionsIncomplete
impl PartialEq for OptionsIncomplete
Source§impl Serialize for OptionsIncomplete
impl Serialize for OptionsIncomplete
impl Eq for OptionsIncomplete
impl StructuralPartialEq for OptionsIncomplete
Auto Trait Implementations§
impl Freeze for OptionsIncomplete
impl RefUnwindSafe for OptionsIncomplete
impl Send for OptionsIncomplete
impl Sync for OptionsIncomplete
impl Unpin for OptionsIncomplete
impl UnwindSafe for OptionsIncomplete
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.