pub enum TrailingCommaKind {
Always,
Jsonc,
Maintain,
Never,
}
Variants§
Always
Always format with trailing commas. Beware: trailing commas can cause many JSON parsers to fail.
Jsonc
Use trailing commas in JSONC files and do not use trailing commas in JSON files. (Default)
Maintain
Keep the trailing comma if it exists.
Never
Never format with trailing commas.
Trait Implementations§
source§impl Clone for TrailingCommaKind
impl Clone for TrailingCommaKind
source§fn clone(&self) -> TrailingCommaKind
fn clone(&self) -> TrailingCommaKind
Returns a copy 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 TrailingCommaKind
impl Debug for TrailingCommaKind
source§impl<'de> Deserialize<'de> for TrailingCommaKind
impl<'de> Deserialize<'de> for TrailingCommaKind
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 Display for TrailingCommaKind
impl Display for TrailingCommaKind
source§impl FromStr for TrailingCommaKind
impl FromStr for TrailingCommaKind
source§impl PartialEq for TrailingCommaKind
impl PartialEq for TrailingCommaKind
source§impl Serialize for TrailingCommaKind
impl Serialize for TrailingCommaKind
impl Copy for TrailingCommaKind
impl StructuralPartialEq for TrailingCommaKind
Auto Trait Implementations§
impl Freeze for TrailingCommaKind
impl RefUnwindSafe for TrailingCommaKind
impl Send for TrailingCommaKind
impl Sync for TrailingCommaKind
impl Unpin for TrailingCommaKind
impl UnwindSafe for TrailingCommaKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)