Struct ScrapedAriaRole

Source
pub struct ScrapedAriaRole {
Show 16 fields pub name: String, pub implicit_values: Option<String>, pub is_abstract: bool, pub base: Option<String>, pub are_children_presentational: bool, pub children: Vec<String>, pub disallowed: Vec<String>, pub inherited: Vec<String>, pub must_contain: Vec<String>, pub name_from: Option<String>, pub is_name_required: bool, pub parent: Vec<String>, pub properties: Vec<String>, pub related: Option<String>, pub required: Vec<String>, pub scope: Vec<String>,
}
Expand description

The raw role values extracted from the WAI-ARIA spec

Fields§

§name: String§implicit_values: Option<String>

Implicit value for role

§is_abstract: bool§base: Option<String>

Base concept

§are_children_presentational: bool§children: Vec<String>

Subclass roles

§disallowed: Vec<String>

Prohibited states and properties

§inherited: Vec<String>

Inherited states and properties

§must_contain: Vec<String>

Allowed accessibility child roles

§name_from: Option<String>§is_name_required: bool§parent: Vec<String>

Superclass role

§properties: Vec<String>

Supported states and properties

§related: Option<String>

Related concepts

§required: Vec<String>

Required states and properties

§scope: Vec<String>

Required accessibility parent roles

Trait Implementations§

Source§

impl Clone for ScrapedAriaRole

Source§

fn clone(&self) -> ScrapedAriaRole

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScrapedAriaRole

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ScrapedAriaRole

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ScrapedAriaRole

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,