pub enum JsonOutputFormat {
Pretty,
Compact,
}Expand description
JSON serialization format for the final schema document.
Variants§
Implementations§
Source§impl JsonOutputFormat
impl JsonOutputFormat
Sourcepub fn from_compact(compact: bool) -> Self
pub fn from_compact(compact: bool) -> Self
Selects compact or pretty JSON from the CLI flag.
Trait Implementations§
Source§impl Clone for JsonOutputFormat
impl Clone for JsonOutputFormat
Source§fn clone(&self) -> JsonOutputFormat
fn clone(&self) -> JsonOutputFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JsonOutputFormat
Source§impl Debug for JsonOutputFormat
impl Debug for JsonOutputFormat
impl Eq for JsonOutputFormat
Source§impl PartialEq for JsonOutputFormat
impl PartialEq for JsonOutputFormat
impl StructuralPartialEq for JsonOutputFormat
Auto Trait Implementations§
impl Freeze for JsonOutputFormat
impl RefUnwindSafe for JsonOutputFormat
impl Send for JsonOutputFormat
impl Sync for JsonOutputFormat
impl Unpin for JsonOutputFormat
impl UnsafeUnpin for JsonOutputFormat
impl UnwindSafe for JsonOutputFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.