pub struct NamespaceDetectionResult {
pub declarations: IndexMap<String, String>,
pub version: Option<ERNVersion>,
pub root_scope: NamespaceScope,
pub warnings: Vec<NamespaceWarning>,
pub default_namespace: Option<String>,
pub custom_namespaces: Vec<NamespaceInfo>,
}
Expand description
Namespace detection result
Fields§
§declarations: IndexMap<String, String>
All namespace declarations found
version: Option<ERNVersion>
Detected ERN version
root_scope: NamespaceScope
Namespace scope tree
warnings: Vec<NamespaceWarning>
Warnings about namespace usage
default_namespace: Option<String>
Default namespace at root level
custom_namespaces: Vec<NamespaceInfo>
Custom namespaces detected
Trait Implementations§
Source§impl Clone for NamespaceDetectionResult
impl Clone for NamespaceDetectionResult
Source§fn clone(&self) -> NamespaceDetectionResult
fn clone(&self) -> NamespaceDetectionResult
Returns a duplicate of the value. Read more
1.0.0 · 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 NamespaceDetectionResult
impl RefUnwindSafe for NamespaceDetectionResult
impl Send for NamespaceDetectionResult
impl Sync for NamespaceDetectionResult
impl Unpin for NamespaceDetectionResult
impl UnwindSafe for NamespaceDetectionResult
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