[][src]Struct xliff::store::TranslationFile

pub struct TranslationFile {
    pub address: String,
    pub source_locale: Option<Locale>,
    pub target_locale: Option<Locale>,
    pub units: Vec<Unit>,
    pub data_type: String,
}

File - The element corresponds to a single extracted original document. http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#file

Fields

address: String

Original file - The original attribute specifies the name of the original file from which the contents of a element has been extracted.

source_locale: Option<Locale>

Source language - The language for the elements in the given element.

target_locale: Option<Locale>

Target language - The language for the elements in the given element.

units: Vec<Unit>

Translation units - A collection of translation units for the given file

data_type: String

Data type - The datatype attribute specifies the kind of text contained in the element.

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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