#[non_exhaustive]pub struct ValidationConfig {
pub vendor_policy: VendorPolicy,
pub scan_keys: bool,
pub discovery_mode: DiscoveryMode,
pub skip_tokens: Vec<String>,
}Expand description
Core validation config — applies regardless of input source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vendor_policy: VendorPolicyVendor matching policy for all GTS IDs. Example vendors (acme, globex, etc.) are always tolerated regardless of policy.
scan_keys: boolScan JSON/YAML object keys for GTS identifiers (default: off).
discovery_mode: DiscoveryModeDiscovery mode for markdown scanning.
StrictSpecOnly(default): only well-formed GTS patterns are discovered.Heuristic: a permissive regex catches ALL gts.* strings, including malformed IDs.
skip_tokens: Vec<String>Additional skip tokens for markdown scanning.
If any of these strings appear before a GTS candidate on the same line,
validation is skipped for that candidate. Case-insensitive matching.
Example: vec!["**given**".to_owned()] to skip BDD-style bold formatting.
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