Enum gedcomx::TextType [−][src]
#[non_exhaustive] pub enum TextType { Plain, Xhtml, }
Expand description
In some cases, a text value must include styling or layout to fully convey its intended meaning. Where such a requirement has been identified, implementers can designate that a text value may include such styling or layout by specifying an alternate text type.
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.
The Plain
text type identifies plain text. Plain
is the default text
type for text without an explicitly specified type.
The Xhtml
text type identifies XHTML text complying with the XHTML 1.0 W3C Recommendation.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]Auto Trait Implementations
impl RefUnwindSafe for TextType
impl UnwindSafe for TextType
Blanket Implementations
Mutably borrows from an owned value. Read more