#[non_exhaustive]pub struct LocationRequest<'a> {
pub location: &'a str,
pub base_uri: &'a str,
pub namespace: Option<&'a str>,
pub kind: Option<CompositionEdgeKind>,
}Expand description
A location, as a LocationRewriter sees it: a directive’s, or one
given to a SchemaSetBuilder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.location: &'a strThe location as written: the directive’s schemaLocation, or, for an
xs:import the catalog maps, the catalog’s location; the location
given to the builder.
base_uri: &'a strThe base URI of the document that contains the directive — what
location would be resolved against without a rewriter. A rewriter’s
answer is not resolved against it (see LocationRewriter). For
a location given to the builder: the base of try_add_relative, else
empty.
namespace: Option<&'a str>The namespace of an xs:import (None for the other directives,
and for an import without one).
kind: Option<CompositionEdgeKind>The directive; None for a location given to the builder itself
(add, try_add, try_add_relative, add_async, and the base URI
of add_source / add_bytes).