#[non_exhaustive]pub struct MetadataElement {
pub xml_id: Option<String>,
pub xml_lang: Option<String>,
pub xml_space: Option<XmlSpace>,
pub condition: Option<String>,
pub children: Vec<MetadataChild>,
}Expand description
A <metadata> element — TTML2 §14.1.1.
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.xml_id: Option<String>XML id.
xml_lang: Option<String>XML language.
xml_space: Option<XmlSpace>XML space.
condition: Option<String>condition expression.
children: Vec<MetadataChild>Child metadata items.
Trait Implementations§
Source§impl Clone for MetadataElement
impl Clone for MetadataElement
Source§fn clone(&self) -> MetadataElement
fn clone(&self) -> MetadataElement
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 MetadataElement
impl Debug for MetadataElement
Source§impl Default for MetadataElement
impl Default for MetadataElement
Source§fn default() -> MetadataElement
fn default() -> MetadataElement
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetadataElement
impl PartialEq for MetadataElement
impl StructuralPartialEq for MetadataElement
Auto Trait Implementations§
impl Freeze for MetadataElement
impl RefUnwindSafe for MetadataElement
impl Send for MetadataElement
impl Sync for MetadataElement
impl Unpin for MetadataElement
impl UnsafeUnpin for MetadataElement
impl UnwindSafe for MetadataElement
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