pub struct ValidatedSourceDocument { /* private fields */ }Expand description
A SourceDocument that passed validate.
Implementations§
Source§impl ValidatedSourceDocument
impl ValidatedSourceDocument
Sourcepub fn document(&self) -> &SourceDocument
pub fn document(&self) -> &SourceDocument
The document itself.
Sourcepub fn into_document(self) -> SourceDocument
pub fn into_document(self) -> SourceDocument
Give the document back, dropping the proof of validation.
Sourcepub fn diagnostics(&self) -> Vec<Diagnostic>
pub fn diagnostics(&self) -> Vec<Diagnostic>
Everything the generator has to say before generating: what the normalization to 3.2 lost, and every reference the first release refuses to follow. Ordered by where it occurs in the source.
Methods from Deref<Target = SourceDocument>§
Sourcepub fn version(&self) -> SourceVersion
pub fn version(&self) -> SourceVersion
The version the description was written in — not the version
spec is at, which is always 3.2.
Sourcepub fn raw(&self) -> &Value
pub fn raw(&self) -> &Value
The description exactly as given, before any conversion. Every diagnostic pointer indexes this value.
Sourcepub fn normalization(&self) -> &[Diagnostic]
pub fn normalization(&self) -> &[Diagnostic]
What normalizing to 3.2 lost. Recorded by the source-version
adapter before the lossy conversion runs, since a 2.0
collectionFormat: tsv that 3.0 drops cannot be recovered
afterwards.
Trait Implementations§
Source§impl Clone for ValidatedSourceDocument
impl Clone for ValidatedSourceDocument
Source§impl Debug for ValidatedSourceDocument
impl Debug for ValidatedSourceDocument
Source§impl Deref for ValidatedSourceDocument
impl Deref for ValidatedSourceDocument
Source§type Target = SourceDocument
type Target = SourceDocument
The resulting type after dereferencing.
Source§fn deref(&self) -> &SourceDocument
fn deref(&self) -> &SourceDocument
Dereferences the value.
Auto Trait Implementations§
impl Forget for ValidatedSourceDocument
impl Freeze for ValidatedSourceDocumentwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Server>: Freeze,
*const LeafNode<String, PathItem> is !null: Freeze,
PhantomData<Box<(String, PathItem)>>: Freeze,
*const LeafNode<String, RefOr<Schema, SchemaRef>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Schema, SchemaRef>)>>: Freeze,
*const LeafNode<String, RefOr<Response>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Response>)>>: Freeze,
*const LeafNode<String, RefOr<Parameter>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Parameter>)>>: Freeze,
*const LeafNode<String, RefOr<Example>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Example>)>>: Freeze,
*const LeafNode<String, RefOr<RequestBody>> is !null: Freeze,
PhantomData<Box<(String, RefOr<RequestBody>)>>: Freeze,
*const LeafNode<String, RefOr<Header>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Header>)>>: Freeze,
*const LeafNode<String, RefOr<SecurityScheme>> is !null: Freeze,
PhantomData<Box<(String, RefOr<SecurityScheme>)>>: Freeze,
*const LeafNode<String, RefOr<Link>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Link>)>>: Freeze,
*const LeafNode<String, RefOr<Callback>> is !null: Freeze,
PhantomData<Box<(String, RefOr<Callback>)>>: Freeze,
*const LeafNode<String, RefOr<MediaType>> is !null: Freeze,
PhantomData<Box<(String, RefOr<MediaType>)>>: Freeze,
PhantomData<BTreeMap<String, Vec<String>>>: Freeze,
PhantomData<Tag>: Freeze,
PhantomData<Diagnostic>: Freeze,
impl Move for ValidatedSourceDocument
impl RefUnwindSafe for ValidatedSourceDocument
impl Send for ValidatedSourceDocumentwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, ServerVariable, LeafOrInternal>: Send,
BoxRaw<(String, ServerVariable)>: Send,
NodeRef<Owned, String, PathItem, LeafOrInternal>: Send,
BoxRaw<(String, PathItem)>: Send,
NodeRef<Owned, String, RefOr<Schema, SchemaRef>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Schema, SchemaRef>)>: Send,
NodeRef<Owned, String, RefOr<Response>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Response>)>: Send,
NodeRef<Owned, String, RefOr<Parameter>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Parameter>)>: Send,
NodeRef<Owned, String, RefOr<Example>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Example>)>: Send,
NodeRef<Owned, String, RefOr<RequestBody>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<RequestBody>)>: Send,
NodeRef<Owned, String, RefOr<Header>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Header>)>: Send,
NodeRef<Owned, String, RefOr<SecurityScheme>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<SecurityScheme>)>: Send,
NodeRef<Owned, String, RefOr<Link>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Link>)>: Send,
NodeRef<Owned, String, RefOr<Callback>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<Callback>)>: Send,
NodeRef<Owned, String, RefOr<MediaType>, LeafOrInternal>: Send,
BoxRaw<(String, RefOr<MediaType>)>: Send,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<String>)>: Send,
impl Sync for ValidatedSourceDocumentwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, ServerVariable, LeafOrInternal>: Sync,
BoxRaw<(String, ServerVariable)>: Sync,
NodeRef<Owned, String, PathItem, LeafOrInternal>: Sync,
BoxRaw<(String, PathItem)>: Sync,
NodeRef<Owned, String, RefOr<Schema, SchemaRef>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Schema, SchemaRef>)>: Sync,
NodeRef<Owned, String, RefOr<Response>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Response>)>: Sync,
NodeRef<Owned, String, RefOr<Parameter>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Parameter>)>: Sync,
NodeRef<Owned, String, RefOr<Example>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Example>)>: Sync,
NodeRef<Owned, String, RefOr<RequestBody>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<RequestBody>)>: Sync,
NodeRef<Owned, String, RefOr<Header>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Header>)>: Sync,
NodeRef<Owned, String, RefOr<SecurityScheme>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<SecurityScheme>)>: Sync,
NodeRef<Owned, String, RefOr<Link>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Link>)>: Sync,
NodeRef<Owned, String, RefOr<Callback>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<Callback>)>: Sync,
NodeRef<Owned, String, RefOr<MediaType>, LeafOrInternal>: Sync,
BoxRaw<(String, RefOr<MediaType>)>: Sync,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
impl Unpin for ValidatedSourceDocumentwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, ServerVariable> is !null: Unpin,
Box<(String, ServerVariable)>: Unpin,
*const LeafNode<String, PathItem> is !null: Unpin,
Box<(String, PathItem)>: Unpin,
*const LeafNode<String, RefOr<Schema, SchemaRef>> is !null: Unpin,
Box<(String, RefOr<Schema, SchemaRef>)>: Unpin,
*const LeafNode<String, RefOr<Response>> is !null: Unpin,
Box<(String, RefOr<Response>)>: Unpin,
*const LeafNode<String, RefOr<Parameter>> is !null: Unpin,
Box<(String, RefOr<Parameter>)>: Unpin,
*const LeafNode<String, RefOr<Example>> is !null: Unpin,
Box<(String, RefOr<Example>)>: Unpin,
*const LeafNode<String, RefOr<RequestBody>> is !null: Unpin,
Box<(String, RefOr<RequestBody>)>: Unpin,
*const LeafNode<String, RefOr<Header>> is !null: Unpin,
Box<(String, RefOr<Header>)>: Unpin,
*const LeafNode<String, RefOr<SecurityScheme>> is !null: Unpin,
Box<(String, RefOr<SecurityScheme>)>: Unpin,
*const LeafNode<String, RefOr<Link>> is !null: Unpin,
Box<(String, RefOr<Link>)>: Unpin,
*const LeafNode<String, RefOr<Callback>> is !null: Unpin,
Box<(String, RefOr<Callback>)>: Unpin,
*const LeafNode<String, RefOr<MediaType>> is !null: Unpin,
Box<(String, RefOr<MediaType>)>: Unpin,
*const LeafNode<String, Vec<String>> is !null: Unpin,
Box<(String, Vec<String>)>: Unpin,
impl UnsafeUnpin for ValidatedSourceDocumentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Server>: UnsafeUnpin,
*const LeafNode<String, PathItem> is !null: UnsafeUnpin,
PhantomData<Box<(String, PathItem)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Schema, SchemaRef>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Schema, SchemaRef>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Response>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Response>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Parameter>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Parameter>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Example>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Example>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<RequestBody>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<RequestBody>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Header>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Header>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<SecurityScheme>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<SecurityScheme>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Link>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Link>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<Callback>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<Callback>)>>: UnsafeUnpin,
*const LeafNode<String, RefOr<MediaType>> is !null: UnsafeUnpin,
PhantomData<Box<(String, RefOr<MediaType>)>>: UnsafeUnpin,
PhantomData<BTreeMap<String, Vec<String>>>: UnsafeUnpin,
PhantomData<Tag>: UnsafeUnpin,
PhantomData<Diagnostic>: UnsafeUnpin,
impl UnwindSafe for ValidatedSourceDocumentwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, ServerVariable>: UnwindSafe,
BTreeMap<String, PathItem>: UnwindSafe,
BTreeMap<String, RefOr<Schema, SchemaRef>>: UnwindSafe,
BTreeMap<String, RefOr<Response>>: UnwindSafe,
BTreeMap<String, RefOr<Parameter>>: UnwindSafe,
BTreeMap<String, RefOr<Example>>: UnwindSafe,
BTreeMap<String, RefOr<RequestBody>>: UnwindSafe,
BTreeMap<String, RefOr<Header>>: UnwindSafe,
BTreeMap<String, RefOr<SecurityScheme>>: UnwindSafe,
BTreeMap<String, RefOr<Link>>: UnwindSafe,
BTreeMap<String, RefOr<Callback>>: UnwindSafe,
BTreeMap<String, RefOr<MediaType>>: UnwindSafe,
BTreeMap<String, Vec<String>>: UnwindSafe,
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