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>>§
Sourcepub fn by_hash_path(&self) -> String
pub fn by_hash_path(&self) -> String
Obtain the by-hash path variant for this entry.
Trait Implementations§
Source§impl<'a> Clone for TranslationFileEntry<'a>
impl<'a> Clone for TranslationFileEntry<'a>
Source§fn clone(&self) -> TranslationFileEntry<'a>
fn clone(&self) -> TranslationFileEntry<'a>
Returns a duplicate 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<'a> Debug for TranslationFileEntry<'a>
impl<'a> Debug for TranslationFileEntry<'a>
Source§impl<'a> Deref for TranslationFileEntry<'a>
impl<'a> Deref for TranslationFileEntry<'a>
Source§impl<'a> DerefMut for TranslationFileEntry<'a>
impl<'a> DerefMut for TranslationFileEntry<'a>
Source§impl<'a> From<TranslationFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<TranslationFileEntry<'a>> for ReleaseFileEntry<'a>
Source§fn from(v: TranslationFileEntry<'a>) -> Self
fn from(v: TranslationFileEntry<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for TranslationFileEntry<'a>
impl<'a> PartialEq for TranslationFileEntry<'a>
Source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for TranslationFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for TranslationFileEntry<'a>
Source§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
impl<'a> StructuralPartialEq for TranslationFileEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for TranslationFileEntry<'a>
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§
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