Enum schemars::gen::BoolSchemas  
source · [−]pub enum BoolSchemas {
    Enabled,
    AdditionalPropertiesOnly,
    Disabled,
}Expand description
Controls whether trivial Bool schemas may be generated.
Variants
Enabled
Bool schemas may be used.
AdditionalPropertiesOnly
Bool schemas may only be used in a schema’s additionalProperties field.
Disabled
Bool schemas will never be used.
Trait Implementations
sourceimpl Clone for BoolSchemas
 
impl Clone for BoolSchemas
sourcefn clone(&self) -> BoolSchemas
 
fn clone(&self) -> BoolSchemas
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 BoolSchemas
 
impl Debug for BoolSchemas
sourceimpl PartialEq<BoolSchemas> for BoolSchemas
 
impl PartialEq<BoolSchemas> for BoolSchemas
impl Copy for BoolSchemas
impl StructuralPartialEq for BoolSchemas
Auto Trait Implementations
impl RefUnwindSafe for BoolSchemas
impl Send for BoolSchemas
impl Sync for BoolSchemas
impl Unpin for BoolSchemas
impl UnwindSafe for BoolSchemas
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more