Enum gedcomx::DocumentType
source · #[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.
Analysis
The document is an analysis done by a researcher; a genealogical proof statement is an example of one kind of analysis document.
Abstract
The document is an abstract of a record or document.
Transcription
The document is a transcription of a record or document.
Translation
The document is a translation of a record or document.
Custom(Uri)
Trait Implementations§
source§impl Arbitrary for DocumentType
impl Arbitrary for DocumentType
source§impl Clone for DocumentType
impl Clone for DocumentType
source§fn clone(&self) -> DocumentType
fn clone(&self) -> DocumentType
Returns a copy of the value. Read more
1.0.0 · 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 DocumentType
impl Debug for DocumentType
source§impl Default for DocumentType
impl Default for DocumentType
source§impl<'de> Deserialize<'de> for DocumentType
impl<'de> Deserialize<'de> for DocumentType
source§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
source§impl Display for DocumentType
impl Display for DocumentType
source§impl PartialEq<DocumentType> for DocumentType
impl PartialEq<DocumentType> for DocumentType
source§fn eq(&self, other: &DocumentType) -> bool
fn eq(&self, other: &DocumentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocumentType
impl Serialize for DocumentType
source§impl YaDeserialize for DocumentType
impl YaDeserialize for DocumentType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl YaSerialize for DocumentType
impl YaSerialize for DocumentType
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, attributes: Vec<OwnedAttribute>, namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for DocumentType
impl StructuralEq for DocumentType
impl StructuralPartialEq for DocumentType
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§
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