pub struct AccessibilityConfig {
pub wcag_level: WcagLevel,
pub max_heading_jump: u8,
pub min_contrast_ratio: f64,
pub auto_fix: bool,
}
Expand description
Color contrast requirements for different WCAG levels
Set of elements that must have labels
Selector for finding headings
Selector for finding images Configuration for accessibility validation
Fields§
§wcag_level: WcagLevel
WCAG conformance level to validate against
max_heading_jump: u8
Maximum allowed heading level jump (e.g., 1 means no skipping levels)
min_contrast_ratio: f64
Minimum required color contrast ratio
auto_fix: bool
Whether to automatically fix issues when possible
Trait Implementations§
Source§impl Clone for AccessibilityConfig
impl Clone for AccessibilityConfig
Source§fn clone(&self) -> AccessibilityConfig
fn clone(&self) -> AccessibilityConfig
Returns a copy 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 AccessibilityConfig
impl Debug for AccessibilityConfig
Source§impl Default for AccessibilityConfig
impl Default for AccessibilityConfig
impl Copy for AccessibilityConfig
Auto Trait Implementations§
impl Freeze for AccessibilityConfig
impl RefUnwindSafe for AccessibilityConfig
impl Send for AccessibilityConfig
impl Sync for AccessibilityConfig
impl Unpin for AccessibilityConfig
impl UnwindSafe for AccessibilityConfig
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more