pub enum ReferenceMode {
SelfContained,
FullyInlinedExport,
PreserveRefs,
}Expand description
How final output should handle JSON Schema references.
This is an output concern only. It controls whether file/URL references are resolved into a self-contained schema or preserved literally for consumers that want to manage references themselves.
Variants§
SelfContained
Bundle referenced schemas while retaining reusable local definitions.
FullyInlinedExport
Resolve and inline every reachable reference for export.
PreserveRefs
Preserve references exactly for the downstream consumer.
Implementations§
Source§impl ReferenceMode
impl ReferenceMode
Sourcepub fn from_flags(keep_refs: bool, inline_refs: bool) -> Self
pub fn from_flags(keep_refs: bool, inline_refs: bool) -> Self
Resolves mutually exclusive CLI flags into one reference policy.
Trait Implementations§
Source§impl Clone for ReferenceMode
impl Clone for ReferenceMode
Source§fn clone(&self) -> ReferenceMode
fn clone(&self) -> ReferenceMode
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 ReferenceMode
Source§impl Debug for ReferenceMode
impl Debug for ReferenceMode
impl Eq for ReferenceMode
Source§impl PartialEq for ReferenceMode
impl PartialEq for ReferenceMode
impl StructuralPartialEq for ReferenceMode
Auto Trait Implementations§
impl Freeze for ReferenceMode
impl RefUnwindSafe for ReferenceMode
impl Send for ReferenceMode
impl Sync for ReferenceMode
impl Unpin for ReferenceMode
impl UnsafeUnpin for ReferenceMode
impl UnwindSafe for ReferenceMode
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.