pub struct ReadOptions<'a> {
pub root: Option<&'a str>,
pub namespaces: Vec<(&'a str, &'a str)>,
}Expand description
How to read a document.
Fields§
§root: Option<&'a str>The root: a canonical URL or type name, or either followed by .element for a fragment
whose root is an element declared inline (StructuredBody.component). Without it, the
type whose root element name matches.
namespaces: Vec<(&'a str, &'a str)>Namespaces for a fragment that uses prefixes it does not declare, or no namespace at all:
("", default) and (prefix, uri) pairs, in scope around the document.
Trait Implementations§
Source§impl<'a> Clone for ReadOptions<'a>
impl<'a> Clone for ReadOptions<'a>
Source§impl<'a> Debug for ReadOptions<'a>
impl<'a> Debug for ReadOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReadOptions<'a>
impl<'a> RefUnwindSafe for ReadOptions<'a>
impl<'a> Send for ReadOptions<'a>
impl<'a> Sync for ReadOptions<'a>
impl<'a> Unpin for ReadOptions<'a>
impl<'a> UnsafeUnpin for ReadOptions<'a>
impl<'a> UnwindSafe for ReadOptions<'a>
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