pub enum Refs {
Omit,
Local,
External(String),
}Expand description
Controls how external type references are handled in the generated schema.
Variants§
Omit
Omit external schemas - just reference them by name without definitions. Produces compact schemas suitable for documentation.
Local
Include external schemas in $defs with local references (#/$defs/TypeName).
Produces self-contained schemas for validation.
External(String)
Reference external schemas from an external URL.
References become {base_url}#/$defs/TypeName.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Refs
impl RefUnwindSafe for Refs
impl Send for Refs
impl Sync for Refs
impl Unpin for Refs
impl UnsafeUnpin for Refs
impl UnwindSafe for Refs
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