pub struct JsonSchemaOptions {
pub use_ref: bool,
}Expand description
Options for JSON Schema output.
Fields§
§use_ref: boolWhether to keep column schemas under definitions and reference them
with $ref. When false, schemas are flattened into properties.
Trait Implementations§
Source§impl Clone for JsonSchemaOptions
impl Clone for JsonSchemaOptions
impl Copy for JsonSchemaOptions
Source§impl Debug for JsonSchemaOptions
impl Debug for JsonSchemaOptions
Source§impl Default for JsonSchemaOptions
impl Default for JsonSchemaOptions
impl Eq for JsonSchemaOptions
Source§impl PartialEq for JsonSchemaOptions
impl PartialEq for JsonSchemaOptions
impl StructuralPartialEq for JsonSchemaOptions
Auto Trait Implementations§
impl Freeze for JsonSchemaOptions
impl RefUnwindSafe for JsonSchemaOptions
impl Send for JsonSchemaOptions
impl Sync for JsonSchemaOptions
impl Unpin for JsonSchemaOptions
impl UnsafeUnpin for JsonSchemaOptions
impl UnwindSafe for JsonSchemaOptions
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.