Struct debian_packaging::repository::release::ReleaseFileEntry
source · [−]pub struct ReleaseFileEntry<'a> {
pub path: &'a str,
pub digest: ContentDigest,
pub size: u64,
}Expand description
An entry for a file in a parsed Release file.
Instances correspond to a line in a MD5Sum, SHA1, or SHA256 field.
This is the most generic way to represent an indices file in a Release file.
Instances can be fallibly converted into more strongly typed release entries via TryFrom/TryInto. Other entry types include ContentsFileEntry, PackagesFileEntry, and SourcesFileEntry.
Fields
path: &'a strThe path to this file within the repository.
digest: ContentDigestThe content digest of this file.
size: u64The size of the file in bytes.
Implementations
sourceimpl<'a> ReleaseFileEntry<'a>
impl<'a> 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 ReleaseFileEntry<'a>
impl<'a> Clone for ReleaseFileEntry<'a>
sourcefn clone(&self) -> ReleaseFileEntry<'a>
fn clone(&self) -> ReleaseFileEntry<'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 ReleaseFileEntry<'a>
impl<'a> Debug for ReleaseFileEntry<'a>
sourceimpl<'a> From<AppStreamComponentsEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<AppStreamComponentsEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: AppStreamComponentsEntry<'a>) -> Self
fn from(v: AppStreamComponentsEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<AppStreamIconsFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<AppStreamIconsFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: AppStreamIconsFileEntry<'a>) -> Self
fn from(v: AppStreamIconsFileEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<ContentsFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<ContentsFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: ContentsFileEntry<'a>) -> Self
fn from(v: ContentsFileEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<FileManifestEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<FileManifestEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: FileManifestEntry<'a>) -> Self
fn from(v: FileManifestEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<PackagesFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<PackagesFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: PackagesFileEntry<'a>) -> Self
fn from(v: PackagesFileEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<ReleaseReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<ReleaseReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: ReleaseReleaseFileEntry<'a>) -> Self
fn from(v: ReleaseReleaseFileEntry<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<SourcesFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<SourcesFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn from(v: SourcesFileEntry<'a>) -> Self
fn from(v: SourcesFileEntry<'a>) -> Self
Converts to this type from the input type.
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<ReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> PartialEq<ReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn eq(&self, other: &ReleaseFileEntry<'a>) -> bool
fn eq(&self, other: &ReleaseFileEntry<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ReleaseFileEntry<'a>) -> bool
fn ne(&self, other: &ReleaseFileEntry<'a>) -> bool
This method tests for !=.
sourceimpl<'a> PartialOrd<ReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> PartialOrd<ReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
sourcefn partial_cmp(&self, other: &ReleaseFileEntry<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ReleaseFileEntry<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamComponentsEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamComponentsEntry<'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.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamIconsFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamIconsFileEntry<'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.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for ContentsFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for ContentsFileEntry<'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.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for PackagesFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for PackagesFileEntry<'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.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for ReleaseReleaseFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for ReleaseReleaseFileEntry<'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.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for SourcesFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for SourcesFileEntry<'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.
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.
sourceimpl<'a> TryFrom<ReleaseFileEntry<'a>> for FileManifestEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for FileManifestEntry<'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 ReleaseFileEntry<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ReleaseFileEntry<'a>
impl<'a> Send for ReleaseFileEntry<'a>
impl<'a> Sync for ReleaseFileEntry<'a>
impl<'a> Unpin for ReleaseFileEntry<'a>
impl<'a> UnwindSafe for ReleaseFileEntry<'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