pub struct ParserConfig {
pub resolver: Vec<Resolver>,
pub namespaces: Vec<(NamespacePrefix, Namespace)>,
pub schemas: Vec<Schema>,
pub flags: ParserFlags,
pub debug_output: Option<PathBuf>,
}
Expand description
Configuration for the schema parser.
Fields§
§resolver: Vec<Resolver>
List of resolvers to use for resolving referenced schemas.
namespaces: Vec<(NamespacePrefix, Namespace)>
List of namespaces to add to the parser before the schemas are loaded.
See with_namespace
for more details.
schemas: Vec<Schema>
List of schemas to load.
flags: ParserFlags
Additional flags to control the parser.
debug_output: Option<PathBuf>
Wether to enable the debug output and where to write it to.
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
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 moreSource§impl Debug for ParserConfig
impl Debug for ParserConfig
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnwindSafe for ParserConfig
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