pub struct XmlCatalog {
pub catalog_path: PathBuf,
pub uri_entries: BTreeMap<String, String>,
pub rewrite_entries: Vec<(String, String)>,
}Expand description
Parsed XML Catalog redirect table (Protégé catalog-v001.xml subset).
Fields§
§catalog_path: PathBufAbsolute path of the catalog file (used to resolve relative uris).
uri_entries: BTreeMap<String, String>Exact IRI (name) → redirect URI string (may be relative).
rewrite_entries: Vec<(String, String)>Prefix rewrite rules: start string → replacement prefix.
Implementations§
Trait Implementations§
Source§impl Clone for XmlCatalog
impl Clone for XmlCatalog
Source§fn clone(&self) -> XmlCatalog
fn clone(&self) -> XmlCatalog
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 moreSource§impl Debug for XmlCatalog
impl Debug for XmlCatalog
Source§impl Default for XmlCatalog
impl Default for XmlCatalog
Source§fn default() -> XmlCatalog
fn default() -> XmlCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for XmlCatalog
impl RefUnwindSafe for XmlCatalog
impl Send for XmlCatalog
impl Sync for XmlCatalog
impl Unpin for XmlCatalog
impl UnsafeUnpin for XmlCatalog
impl UnwindSafe for XmlCatalog
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