#[non_exhaustive]pub enum Element<'s> {
}
Expand description
Represents all SSML elements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(Text<'s>)
Audio(Audio<'s>)
Voice(Voice<'s>)
Meta(Meta<'s>)
Break(Break)
Emphasis(Emphasis<'s>)
Mark(Mark<'s>)
SayAs(SayAs<'s>)
Group(Group<'s>)
Lang(Lang<'s>)
Prosody(Prosody<'s>)
FlavorMSTTS(Element<'s>)
Custom(CustomElement<'s>)
Implementations§
Trait Implementations§
Source§impl<'s> From<CustomElement<'s>> for Element<'s>
impl<'s> From<CustomElement<'s>> for Element<'s>
Source§fn from(val: CustomElement<'s>) -> Element<'s>
fn from(val: CustomElement<'s>) -> Element<'s>
Converts to this type from the input type.
Source§impl<'s> Serialize for Element<'s>
impl<'s> Serialize for Element<'s>
Source§fn serialize_xml<W: Write>(
&self,
writer: &mut XmlWriter<W>,
options: &SerializeOptions,
) -> Result<()>
fn serialize_xml<W: Write>( &self, writer: &mut XmlWriter<W>, options: &SerializeOptions, ) -> Result<()>
Serialize this SSML element into an
XmlWriter
.Source§fn serialize<W: Write>(
&self,
writer: &mut W,
options: &SerializeOptions,
) -> Result<()>
fn serialize<W: Write>( &self, writer: &mut W, options: &SerializeOptions, ) -> Result<()>
Serialize this SSML element into an
std
Write
r.Source§fn serialize_to_string(&self, options: &SerializeOptions) -> Result<String>
fn serialize_to_string(&self, options: &SerializeOptions) -> Result<String>
Serialize this SSML element into a string.
Auto Trait Implementations§
impl<'s> Freeze for Element<'s>
impl<'s> RefUnwindSafe for Element<'s>
impl<'s> Send for Element<'s>
impl<'s> Sync for Element<'s>
impl<'s> Unpin for Element<'s>
impl<'s> UnwindSafe for Element<'s>
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