Enum gedcomx::DocumentType [−][src]
#[non_exhaustive] pub enum DocumentType { Analysis, Abstract, Transcription, Translation, Custom(Uri), }
Expand description
Document types
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 document is an analysis done by a researcher; a genealogical proof statement is an example of one kind of analysis document.
The document is an abstract of a record or document.
The document is a transcription of a record or document.
The document is a translation of a record or document.
Custom(Uri)
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Auto Trait Implementations
impl RefUnwindSafe for DocumentType
impl Send for DocumentType
impl Sync for DocumentType
impl Unpin for DocumentType
impl UnwindSafe for DocumentType
Blanket Implementations
Mutably borrows from an owned value. Read more