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>>
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
sourceimpl<'a> Clone for TranslationFileEntry<'a>
impl<'a> Clone for TranslationFileEntry<'a>
sourcefn clone(&self) -> TranslationFileEntry<'a>
fn clone(&self) -> TranslationFileEntry<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for TranslationFileEntry<'a>
impl<'a> Debug for TranslationFileEntry<'a>
sourceimpl<'a> Deref for TranslationFileEntry<'a>
impl<'a> Deref for TranslationFileEntry<'a>
type Target = ReleaseFileEntry<'a>
type Target = ReleaseFileEntry<'a>
The resulting type after dereferencing.
sourceimpl<'a> DerefMut for TranslationFileEntry<'a>
impl<'a> DerefMut for TranslationFileEntry<'a>
sourceimpl<'a> From<TranslationFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<TranslationFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: TranslationFileEntry<'a>) -> Self
fn from(v: TranslationFileEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<TranslationFileEntry<'a>> for TranslationFileEntry<'a>
impl<'a> PartialEq<TranslationFileEntry<'a>> for TranslationFileEntry<'a>
sourcefn eq(&self, other: &TranslationFileEntry<'a>) -> bool
fn eq(&self, other: &TranslationFileEntry<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TranslationFileEntry<'a>) -> bool
fn ne(&self, other: &TranslationFileEntry<'a>) -> bool
This method tests for !=.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for TranslationFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for TranslationFileEntry<'a>
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
sourcefn try_from(entry: ReleaseFileEntry<'a>) -> Result<Self, Self::Error>
fn try_from(entry: ReleaseFileEntry<'a>) -> Result<Self, Self::Error>
Performs the conversion.
impl<'a> StructuralPartialEq for TranslationFileEntry<'a>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more