pub enum SchemaCollect {
All,
NonInlined,
}
Expand description
Configures schema collect mode. By default only non explicitly inlined schemas are collected.
but this behavior can be changed to collect also inlined schemas by setting
SchemaCollect::All
.
Variants§
All
Makes sure that all schemas from usages are collected including inlined.
NonInlined
Collect only non explicitly inlined schemas to the OpenAPI. This will result smaller schema
foot print in the OpenAPI if schemas are typically inlined with inline(T)
on usage.
Trait Implementations§
source§impl Default for SchemaCollect
impl Default for SchemaCollect
source§fn default() -> SchemaCollect
fn default() -> SchemaCollect
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchemaCollect
impl<'de> Deserialize<'de> for SchemaCollect
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
Auto Trait Implementations§
impl Freeze for SchemaCollect
impl RefUnwindSafe for SchemaCollect
impl Send for SchemaCollect
impl Sync for SchemaCollect
impl Unpin for SchemaCollect
impl UnwindSafe for SchemaCollect
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