[][src]Enum fastobo::ast::HeaderClause

pub enum HeaderClause {
    FormatVersion(UnquotedString),
    DataVersion(UnquotedString),
    Date(NaiveDateTime),
    SavedBy(UnquotedString),
    AutoGeneratedBy(UnquotedString),
    Import(Import),
    Subsetdef(SubsetIdentQuotedString),
    SynonymTypedef(SynonymTypeIdentQuotedStringOption<SynonymScope>),
    DefaultNamespace(NamespaceIdent),
    NamespaceIdRule(UnquotedString),
    Idspace(IdentPrefixUrlOption<QuotedString>),
    TreatXrefsAsEquivalent(IdentPrefix),
    TreatXrefsAsGenusDifferentia(IdentPrefixRelationIdentClassIdent),
    TreatXrefsAsReverseGenusDifferentia(IdentPrefixRelationIdentClassIdent),
    TreatXrefsAsRelationship(IdentPrefixRelationIdent),
    TreatXrefsAsIsA(IdentPrefix),
    TreatXrefsAsHasSubclass(IdentPrefix),
    PropertyValue(PropertyValue),
    Remark(UnquotedString),
    Ontology(UnquotedString),
    OwlAxioms(UnquotedString),
    Unreserved(UnquotedStringUnquotedString),
}

A clause appearing in a header frame.

Header clauses are used to add metadata to OBO documents. They are all optional, but every document should at least contain a FormatVersion clause, to help with interoperability and to make sure the semantics of the right OBO specification are in use.

Comparison

HeaderClause implements PartialOrd following the semantics of the OBO specification: clauses will compare based on their serialization order rather than on their alphabetic order; clauses of the same kind will be ranked in the alphabetic order.

Variants

FormatVersion(UnquotedString)
DataVersion(UnquotedString)
AutoGeneratedBy(UnquotedString)
Import(Import)
DefaultNamespace(NamespaceIdent)
NamespaceIdRule(UnquotedString)
TreatXrefsAsEquivalent(IdentPrefix)
TreatXrefsAsGenusDifferentia(IdentPrefixRelationIdentClassIdent)
TreatXrefsAsReverseGenusDifferentia(IdentPrefixRelationIdentClassIdent)
TreatXrefsAsRelationship(IdentPrefixRelationIdent)
TreatXrefsAsIsA(IdentPrefix)
TreatXrefsAsHasSubclass(IdentPrefix)
PropertyValue(PropertyValue)
Ontology(UnquotedString)
OwlAxioms(UnquotedString)

Trait Implementations

impl Clone for HeaderClause[src]

impl Debug for HeaderClause[src]

impl Display for HeaderClause[src]

impl Eq for HeaderClause[src]

impl From<HeaderClause> for HeaderFrame[src]

impl FromIterator<HeaderClause> for HeaderFrame[src]

impl<'i> FromPair<'i> for HeaderClause[src]

impl FromStr for HeaderClause[src]

type Err = SyntaxError

The associated error which can be returned from parsing.

impl Hash for HeaderClause[src]

impl OboClause for HeaderClause[src]

impl Ord for HeaderClause[src]

impl PartialEq<HeaderClause> for HeaderClause[src]

impl PartialOrd<HeaderClause> for HeaderClause[src]

impl StructuralEq for HeaderClause[src]

impl StructuralPartialEq for HeaderClause[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.