pub struct NamespaceInfo {
pub prefix: Option<NamespacePrefix>,
pub namespace: Option<Namespace>,
pub schemas: Vec<SchemaId>,
pub module_name: Option<String>,
}
Expand description
Contains the information for a specific namespace.
Fields§
§prefix: Option<NamespacePrefix>
First used/known prefix of the namespace or None
if it is unknown.
namespace: Option<Namespace>
URI of the namespace or None
if it is the global or no namespace.
schemas: Vec<SchemaId>
Schema files associated with this namespace.
module_name: Option<String>
User defined name to use for module generation for this namespace.
Implementations§
Source§impl NamespaceInfo
impl NamespaceInfo
Sourcepub fn new(namespace: Option<Namespace>) -> Self
pub fn new(namespace: Option<Namespace>) -> Self
Create a new NamespaceInfo
instance from the passed namespace
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NamespaceInfo
impl RefUnwindSafe for NamespaceInfo
impl Send for NamespaceInfo
impl Sync for NamespaceInfo
impl Unpin for NamespaceInfo
impl UnwindSafe for NamespaceInfo
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