pub struct SchemaValidationOptions {
pub check_types: bool,
pub check_references: bool,
pub strict: Option<bool>,
pub semantic: bool,
pub strict_syntax: bool,
pub function_catalog: Option<Arc<dyn FunctionCatalog>>,
}Expand description
Options for schema-aware validation.
Fields§
§check_types: boolEnables type compatibility checks for expressions, DML assignments, and set operations.
check_references: boolEnables FK/reference integrity checks and query-level reference quality checks.
strict: Option<bool>If true/false, overrides schema.strict.
semantic: boolEnables semantic warnings (W001..W004).
strict_syntax: boolEnables strict syntax checks (e.g. rejects trailing commas before clause boundaries).
function_catalog: Option<Arc<dyn FunctionCatalog>>Optional external function catalog plugin for dialect-specific function validation.
Trait Implementations§
Source§impl Clone for SchemaValidationOptions
impl Clone for SchemaValidationOptions
Source§fn clone(&self) -> SchemaValidationOptions
fn clone(&self) -> SchemaValidationOptions
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 Default for SchemaValidationOptions
impl Default for SchemaValidationOptions
Source§fn default() -> SchemaValidationOptions
fn default() -> SchemaValidationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaValidationOptions
impl<'de> Deserialize<'de> for SchemaValidationOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SchemaValidationOptions
impl !RefUnwindSafe for SchemaValidationOptions
impl Send for SchemaValidationOptions
impl Sync for SchemaValidationOptions
impl Unpin for SchemaValidationOptions
impl UnsafeUnpin for SchemaValidationOptions
impl !UnwindSafe for SchemaValidationOptions
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