pub struct CompositionEdge {
pub source_doc: DocumentId,
pub target_doc: Option<DocumentId>,
pub resolved_location: String,
pub kind: CompositionEdgeKind,
pub source: Option<SourceRef>,
pub schema_location: String,
}Expand description
A directed edge in the schema composition graph.
Records that source_doc references target_doc via a composition
directive of the given kind. The source field links back to the
directive element in the source document for diagnostics.
target_doc is None for cycle edges discovered while the target is
still mid-parse (in the resolver’s resolving set). After directive
resolution completes, call [fixup_composition_edges] to fill in
any None targets from loaded_locations.
Fields§
§source_doc: DocumentId§target_doc: Option<DocumentId>§resolved_location: StringResolved URI of the target (for fixup and diagnostics).
kind: CompositionEdgeKind§source: Option<SourceRef>Source location of the directive element (for diagnostics).
schema_location: StringRaw schemaLocation attribute value (not the resolved URI).
Trait Implementations§
Source§impl Clone for CompositionEdge
impl Clone for CompositionEdge
Source§fn clone(&self) -> CompositionEdge
fn clone(&self) -> CompositionEdge
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 moreAuto Trait Implementations§
impl Freeze for CompositionEdge
impl RefUnwindSafe for CompositionEdge
impl Send for CompositionEdge
impl Sync for CompositionEdge
impl Unpin for CompositionEdge
impl UnsafeUnpin for CompositionEdge
impl UnwindSafe for CompositionEdge
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