pub struct ValidationConfig {
pub validate_arguments: bool,
pub validate_enums: bool,
pub validate_functions: bool,
pub validate_brackets: bool,
}Expand description
Configuration for parser validation
Fields§
§validate_arguments: boolValidate argument counts against function metadata
validate_enums: boolValidate enum values against defined enums
validate_functions: boolValidate that all functions exist in metadata
validate_brackets: boolValidate bracket usage (required/optional/forbidden)
Implementations§
Source§impl ValidationConfig
impl ValidationConfig
Sourcepub fn syntax_only() -> Self
pub fn syntax_only() -> Self
Enable only syntax validations (no metadata required)
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if any validation is enabled
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 ValidationConfig
impl Debug for ValidationConfig
Source§impl Default for ValidationConfig
impl Default for ValidationConfig
Source§fn default() -> ValidationConfig
fn default() -> ValidationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnsafeUnpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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