pub struct ResolvedNamespace {
pub schema_dir: PathBuf,
pub source_uri: String,
}Expand description
One resolved namespace: where its schema files live on disk and
the canonical URI it came from. Returned by resolve_namespace
and resolve_namespace_with.
Fields§
§schema_dir: PathBufDirectory the crate::SchemaLoader should scan for .yaml
files.
source_uri: StringThe URI the resolver was asked about — useful for diagnostics that want to remind the user which declaration they’re looking at.
Trait Implementations§
Source§impl Clone for ResolvedNamespace
impl Clone for ResolvedNamespace
Source§fn clone(&self) -> ResolvedNamespace
fn clone(&self) -> ResolvedNamespace
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 ResolvedNamespace
impl RefUnwindSafe for ResolvedNamespace
impl Send for ResolvedNamespace
impl Sync for ResolvedNamespace
impl Unpin for ResolvedNamespace
impl UnsafeUnpin for ResolvedNamespace
impl UnwindSafe for ResolvedNamespace
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