Struct jsona::formatter::OptionsIncompleteCamel
source · [−]pub struct OptionsIncompleteCamel {
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
sourceimpl OptionsIncompleteCamel
impl OptionsIncompleteCamel
pub fn from_options(opts: Options) -> Self
Trait Implementations
sourceimpl Clone for OptionsIncompleteCamel
impl Clone for OptionsIncompleteCamel
sourcefn clone(&self) -> OptionsIncompleteCamel
fn clone(&self) -> OptionsIncompleteCamel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptionsIncompleteCamel
impl Debug for OptionsIncompleteCamel
sourceimpl Default for OptionsIncompleteCamel
impl Default for OptionsIncompleteCamel
sourcefn default() -> OptionsIncompleteCamel
fn default() -> OptionsIncompleteCamel
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OptionsIncompleteCamel
impl<'de> Deserialize<'de> for OptionsIncompleteCamel
sourcefn 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
sourceimpl PartialEq<OptionsIncompleteCamel> for OptionsIncompleteCamel
impl PartialEq<OptionsIncompleteCamel> for OptionsIncompleteCamel
sourcefn eq(&self, other: &OptionsIncompleteCamel) -> bool
fn eq(&self, other: &OptionsIncompleteCamel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for OptionsIncompleteCamel
impl Serialize for OptionsIncompleteCamel
impl Eq for OptionsIncompleteCamel
impl StructuralEq for OptionsIncompleteCamel
impl StructuralPartialEq for OptionsIncompleteCamel
Auto Trait Implementations
impl RefUnwindSafe for OptionsIncompleteCamel
impl Send for OptionsIncompleteCamel
impl Sync for OptionsIncompleteCamel
impl Unpin for OptionsIncompleteCamel
impl UnwindSafe for OptionsIncompleteCamel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.