pub struct MediaDescriptor {
pub label: String,
pub has_captions: bool,
pub has_audio_description: bool,
pub has_transcript: bool,
}Expand description
Raw input for media factory methods.
The factory creates a new AccessKit media node with the given label.
Fields§
§label: StringAccessible label / alt text for the media element.
has_captions: boolWhether synchronised captions are present (WCAG 1.2.2).
has_audio_description: boolWhether an audio description track is present (WCAG 1.2.5).
has_transcript: boolWhether a text transcript is available (WCAG 1.2.1).
Trait Implementations§
Source§impl Clone for MediaDescriptor
impl Clone for MediaDescriptor
Source§fn clone(&self) -> MediaDescriptor
fn clone(&self) -> MediaDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MediaDescriptor
impl Debug for MediaDescriptor
Source§impl PartialEq for MediaDescriptor
impl PartialEq for MediaDescriptor
Source§fn eq(&self, other: &MediaDescriptor) -> bool
fn eq(&self, other: &MediaDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MediaDescriptor
Auto Trait Implementations§
impl Freeze for MediaDescriptor
impl RefUnwindSafe for MediaDescriptor
impl Send for MediaDescriptor
impl Sync for MediaDescriptor
impl Unpin for MediaDescriptor
impl UnsafeUnpin for MediaDescriptor
impl UnwindSafe for MediaDescriptor
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