Struct exile::Declaration[][src]

pub struct Declaration {
    pub version: Option<Version>,
    pub encoding: Option<Encoding>,
}

The XML declaration at the start of the XML Document.

Fields

version: Option<Version>

The version of the XML Document. None is the same as Version::V10 except that it is not printed in the XML document. That is, XML defaults to 1.0 in the absence of a declaration.

encoding: Option<Encoding>

The encoding of the XML Document. None is the same as Encoding::Utf8 except that it is not printed in the XML document. That is, XML defaults to UTF-8 in the absence of a declaration.

Trait Implementations

impl Clone for Declaration[src]

impl Copy for Declaration[src]

impl Debug for Declaration[src]

impl Default for Declaration[src]

impl Eq for Declaration[src]

impl Hash for Declaration[src]

impl Ord for Declaration[src]

impl PartialEq<Declaration> for Declaration[src]

impl PartialOrd<Declaration> for Declaration[src]

impl StructuralEq for Declaration[src]

impl StructuralPartialEq for Declaration[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, 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.