pub struct Rules {
pub enforce_reserved_masking: bool,
pub allow_lowercase_hex: bool,
}Expand description
Validation rule set (runtime adjustable apart from compile-time strict feature).
Fields§
§enforce_reserved_masking: boolIf true, any ASCII char outside unreserved set must appear only as encoded triplet “,XX”.
allow_lowercase_hex: boolAccept lowercase hex inside escapes when strict feature not active. (Default true)
Implementations§
Source§impl Rules
impl Rules
pub const fn strict_like() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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