pub struct ParseOptions {
pub default_namespace: Option<String>,
pub namespace_registry: Option<NamespaceRegistry>,
pub entry_path: Option<PathBuf>,
pub active_profile: Option<String>,
pub tolerate_profile_warnings: bool,
}Expand description
Controls how the SEA parser interprets declarations.
Currently only the default_namespace value influences whether entities/resources
without an explicit namespace inherit a fallback namespace.
Fields§
§default_namespace: Option<String>When Some, unqualified declarations receive this namespace.
When None, entities and resources must provide their own namespace.
namespace_registry: Option<NamespaceRegistry>Optional namespace registry used for module resolution.
entry_path: Option<PathBuf>Path to the entry file being parsed, used for module resolution.
active_profile: Option<String>Active profile to enforce when no profile is declared in the source file.
tolerate_profile_warnings: boolDowngrades profile violations from hard errors to warnings when set.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
impl Debug for ParseOptions
Source§impl Default for ParseOptions
impl Default for ParseOptions
Source§fn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
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