Struct debian_packaging::repository::release::TranslationFileEntry
source · [−]pub struct TranslationFileEntry<'a> {
pub component: Cow<'a, str>,
pub locale: Cow<'a, str>,
pub compression: Compression,
/* private fields */
}Expand description
A special type of ReleaseFileEntry that describes a Translations file.
These typically exist under paths named <component>/i18n/Translation-<locale><compression>.
Fields
component: Cow<'a, str>The parsed component name (from the entry’s path).
locale: Cow<'a, str>The locale the translation is for.
compression: CompressionFile-level compression format being used.
Methods from Deref<Target = ReleaseFileEntry<'a>>
Obtain the by-hash path variant for this entry.
Trait Implementations
type Target = ReleaseFileEntry<'a>
type Target = ReleaseFileEntry<'a>
The resulting type after dereferencing.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for TranslationFileEntry<'a>
impl<'a> Send for TranslationFileEntry<'a>
impl<'a> Sync for TranslationFileEntry<'a>
impl<'a> Unpin for TranslationFileEntry<'a>
impl<'a> UnwindSafe for TranslationFileEntry<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more